Fix write permissions on macOS nac Linux

This commit is contained in:
pokamest 2022-08-11 12:29:09 +03:00
parent 1eb789e847
commit 625201e559
2 changed files with 2 additions and 2 deletions

View file

@ -25,8 +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 555 $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,7 @@ 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/
rm -rf $LOG_FOLDER
mkdir -p $LOG_FOLDER