Create 82-sma-update.bash

pull/1/head
RandomNinjaAtk 5 years ago committed by GitHub
parent a24fc51b67
commit d8d6ab6d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bash
# update from git
if [[ "${SMA_UPDATE}" == "true" ]]
then
git -C ${SMA_PATH} pull origin master
fi
# permissions
chown -R abc:abc ${SMA_PATH}
chmod -R 775 ${SMA_PATH}/*.sh
# update autoprocess
python3 ${SMA_PATH}/update.py
exit $?
Loading…
Cancel
Save