1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

chown on upgrade and restore

This commit is contained in:
Kayou 2019-02-26 01:21:09 +01:00
parent 4e940b3b41
commit fab4ff8643
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
2 changed files with 4 additions and 11 deletions

View file

@ -100,7 +100,7 @@ ynh_system_user_create $app
#=================================================
# Restore permissions on app files
chown -R www-data: $final_path
chown -R $app: $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -74,10 +74,6 @@ ynh_print_info "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
cp -a ../sources/* ${final_path}/
chown -R www-data: ${final_path}/
chmod -R 0644 ${final_path}/*
find ${final_path}/ -type d -exec chmod +x {} \;
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -141,12 +137,9 @@ yunohost service start $service_name
#=================================================
# Set permissions on app files
chown -R www-data: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_print_info "Upgrading SSOwat configuration..."
chown -R $app: ${final_path}/
chmod -R 0644 ${final_path}/*
find ${final_path}/ -type d -exec chmod +x {} \;
#=================================================
# RELOAD NGINX