Merge pull request #90 from amnezia-vpn/Linux_fix_sh_permissions

AVP-01-001 (Fix permissions for Linux and MacOS)
This commit is contained in:
pokamest 2022-08-15 23:27:44 +03:00 committed by GitHub
commit aa4bd516a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -25,9 +25,7 @@ if sudo systemctl is-active --quiet $APP_NAME; then
sudo rm -rf /etc/systemd/system/$APP_NAME.service >> $LOG_FILE
fi
sudo chmod +x $APP_PATH/client/bin/easyrsa >> $LOG_FILE
sudo chmod --- $APP_PATH/client/bin/update-resolv-conf.sh
sudo chmod +rx $APP_PATH/client/bin/update-resolv-conf.sh
sudo chmod -R a-w $APP_PATH/
sudo cp $APP_PATH/service/$APP_NAME.service /etc/systemd/system/ >> $LOG_FILE

View file

@ -14,6 +14,9 @@ fi
tar xzf $APP_PATH/$APP_NAME.tar.gz -C $APP_PATH
rm -f $APP_PATH/$APP_NAME.tar.gz
sudo chmod -R a-w $APP_PATH/
sudo chown -R root $APP_PATH/
sudo chgrp -R wheel $APP_PATH/
rm -rf $LOG_FOLDER
mkdir -p $LOG_FOLDER