Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-08-19 18:03:02 +02:00 committed by GitHub
parent bbd0ea86e1
commit 34e62e4255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -394,12 +394,15 @@ download_new_admin() {
mkdir -p $OPENADMIN_DIR
echo "Updating OpenAdmin from https://github.com/stefanpejcic/openadmin"
echo ""
cd /usr/local/admin/
cd $OPENADMIN_DIR
#stash is used for demo
git stash
git pull
git stash pop
# need for csf
chmod +x ${OPENADMIN_DIR}modules/security/csf.pl
service admin restart
}