epicyon/scripts/restart

24 lines
590 B
Plaintext
Raw Normal View History

2026-04-01 18:03:35 +00:00
#!/bin/bash
2026-07-05 12:15:27 +00:00
dir_name="epicyon"
if [ -d /etc/${dir_name} ]; then
cd /etc/${dir_name} || exit 0
2026-06-17 19:24:13 +00:00
else
2026-07-05 12:15:27 +00:00
if [ -d /opt/${dir_name} ]; then
cd /opt/${dir_name} || exit 0
else if [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
cd /opt/${dir_name} || exit 0
else if [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
cd /opt/${dir_name} || exit 0
else if [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
cd /opt/${dir_name} || exit 0
2026-06-17 19:24:13 +00:00
fi
2026-05-06 18:40:50 +00:00
git stash
2026-04-01 18:03:35 +00:00
git pull
2026-07-05 12:15:27 +00:00
chown -R ${dir_name}:${dir_name} *
2026-04-01 18:04:40 +00:00
chmod 644 *.py
chmod 644 src/*.py
2026-07-05 12:15:27 +00:00
systemctl restart ${dir_name}