epicyon/scripts/devrepo

26 lines
630 B
Plaintext
Raw Normal View History

2019-10-03 09:51:27 +00:00
#!/bin/bash
dir_name="epicyon"
if [ -d /etc/${dir_name} ]; then
cd /etc/${dir_name} || exit 0
else
if [ -d /opt/${dir_name} ]; then
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
cd /opt/${dir_name} || exit 0
fi
fi
2026-05-06 18:40:50 +00:00
git stash
2021-08-17 20:57:42 +00:00
git remote set-url origin https://gitlab.com/bashrc2/epicyon.git
2019-10-03 09:55:11 +00:00
git checkout main
chown -R ${dir_name}:${dir_name} *
2026-06-17 19:23:30 +00:00
chmod 644 *.py
chmod 644 src/*.py