Update services/documentation/zensical.md
This commit is contained in:
@@ -105,6 +105,7 @@ sudo useradd --system --home /srv/zensical --shell /usr/sbin/nologin zensical ||
|
|||||||
sudo chown -R zensical:zensical /srv/zensical
|
sudo chown -R zensical:zensical /srv/zensical
|
||||||
sudo find /srv/zensical -type d -exec chmod 2775 {} \;
|
sudo find /srv/zensical -type d -exec chmod 2775 {} \;
|
||||||
sudo find /srv/zensical -type f -exec chmod 664 {} \; # This step likes to take a while, sometimes up to a minute.
|
sudo find /srv/zensical -type f -exec chmod 664 {} \; # This step likes to take a while, sometimes up to a minute.
|
||||||
|
sudo chmod 755 /srv/zensical/.venv/bin/* # Ensure Python Environment Executables Function
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -139,20 +140,19 @@ EOF
|
|||||||
|
|
||||||
# Start & Enable Automatic Startup of Service
|
# Start & Enable Automatic Startup of Service
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable --now zensical-watchdog.service
|
sudo systemctl enable --now zensical-watchdog
|
||||||
```
|
```
|
||||||
### Updating
|
### Updating
|
||||||
You will obviously want to keep Zensical up-to-date. You can run the following commands to upgrade it. This is taken and simplified from the original [Upgrade Documentation](https://zensical.org/docs/upgrade/) on Zensical's website.
|
You will obviously want to keep Zensical up-to-date. You can run the following commands to upgrade it. This is taken and simplified from the original [Upgrade Documentation](https://zensical.org/docs/upgrade/) on Zensical's website.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Upgrade Zensical
|
# Upgrade Zensical
|
||||||
|
systemctl stop zensical-watchdog
|
||||||
cd /srv/zensical
|
cd /srv/zensical
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
pip install --upgrade --force-reinstall zensical
|
pip install --upgrade --force-reinstall zensical
|
||||||
deactivate
|
deactivate
|
||||||
|
systemctl start zensical-watchdog
|
||||||
# Make Zensical Binary Executable for Service
|
|
||||||
sudo chmod +x /srv/zensical/.venv/bin/zensical
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## NGINX Webserver
|
## NGINX Webserver
|
||||||
|
|||||||
Reference in New Issue
Block a user