parent
60765e1697
commit
a7fa55e01b
@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
cd /pagermaid/workdir
|
cd /pagermaid/workdir
|
||||||
git remote set-url origin https://github.com/Xtao-Labs/PagerMaid-Modify.git
|
git remote set-url origin https://github.com/Xtao-Labs/PagerMaid-Modify.git
|
||||||
requir_old=$(cat requirements.txt)
|
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
[[ $requir_old != $(cat requirements.txt) ]] && {
|
pip install -r requirements.txt
|
||||||
pip install -r requirements.txt
|
exit 0
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
if [[ $RUN_AS_ROOT != true ]]; then
|
perl -i -pe "{
|
||||||
exec s6-setuidgid pagermaid redis-server --daemonize yes
|
s|^dir /var/lib/redis|dir /pagermaid/workdir|;
|
||||||
else
|
s|^save \d+ 1|save 60 1|;
|
||||||
redis-server --daemonize yes
|
}" /etc/redis/redis.conf
|
||||||
fi
|
|
||||||
|
cd /pagermaid/workdir
|
||||||
|
redis-server /etc/redis/redis.conf
|
@ -4,6 +4,6 @@ cd /pagermaid/workdir
|
|||||||
if [[ $RUN_AS_ROOT != true ]]; then
|
if [[ $RUN_AS_ROOT != true ]]; then
|
||||||
exec s6-setuidgid pagermaid python -m pagermaid
|
exec s6-setuidgid pagermaid python -m pagermaid
|
||||||
else
|
else
|
||||||
python -m pagermaid
|
exec s6-setuidgid root python -m pagermaid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user