chown on upgrade and restore
This commit is contained in:
@@ -100,7 +100,7 @@ ynh_system_user_create $app
|
|||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R www-data: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|||||||
@@ -74,10 +74,6 @@ ynh_print_info "Upgrading source files..."
|
|||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
cp -a ../sources/* ${final_path}/
|
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
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
@@ -141,12 +137,9 @@ yunohost service start $service_name
|
|||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R www-data: $final_path
|
chown -R $app: ${final_path}/
|
||||||
|
chmod -R 0644 ${final_path}/*
|
||||||
#=================================================
|
find ${final_path}/ -type d -exec chmod +x {} \;
|
||||||
# SETUP SSOWAT
|
|
||||||
#=================================================
|
|
||||||
ynh_print_info "Upgrading SSOwat configuration..."
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|||||||
Reference in New Issue
Block a user