... | ... | @@ -50,9 +50,11 @@ Now run `update_conda.py --config /opt/conda/conda_config.yaml` This will take a |
|
|
|
|
|
# Create conda service and timer
|
|
|
|
|
|
Instead of manually checking for an update to the conda environment, create the following which will check every 24 hours and automatically run `update_conda.py`.
|
|
|
|
|
|
Create `/etc/systemd/system/conda.service`
|
|
|
|
|
|
```
|
|
|
```plaintext
|
|
|
[Unit]
|
|
|
Description=Install or update conda environments
|
|
|
|
... | ... | @@ -62,9 +64,9 @@ User=cdsadmin |
|
|
ExecStart=/usr/bin/update_conda.py --config-path /opt/conda/conda_config.yaml
|
|
|
```
|
|
|
|
|
|
Create `/etc/systemd/system/conda.service`
|
|
|
Create `/etc/systemd/system/conda.timer`
|
|
|
|
|
|
```
|
|
|
```plaintext
|
|
|
[Unit]
|
|
|
Description=Update conda environments daily
|
|
|
|
... | ... | @@ -79,7 +81,7 @@ WantedBy=timers.target |
|
|
|
|
|
Change the ownership of `/opt/conda` to belong to `cdsadmin` and make the script executable by `cdsadmin`
|
|
|
|
|
|
```
|
|
|
```plaintext
|
|
|
chown -R cdsadmin:cdsadmin /opt/conda
|
|
|
chmod +x /usr/bin/update_conda.py
|
|
|
``` |
|
|
\ No newline at end of file |