PagerMaid-Modify/s6/etc/cont-init.d/20-update

11 lines
271 B
Plaintext
Raw Normal View History

#!/usr/bin/with-contenv bash
cd /pagermaid/workdir
git remote set-url origin https://github.com/Xtao-Labs/PagerMaid-Modify.git
requir_old=$(cat requirements.txt)
git pull
[[ $requir_old != $(cat requirements.txt) ]] && {
pip install -r requirements.txt
exit 0
}