1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00
This commit is contained in:
ericgaspar 2022-05-18 09:32:04 +02:00
parent 1dbc215f9e
commit c845bca885
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 28 additions and 20 deletions

View file

@ -87,6 +87,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -202,18 +206,18 @@ ynh_store_file_checksum --file="$final_path/protected/config/common.php"
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions on app files
chown -R root: $final_path
# # Set permissions on app files
# chown -R root: $final_path
# Remove permission to others than $app and www-data (nginx user)
chmod o-rwx $final_path
chown $app:www-data $final_path
# # Remove permission to others than $app and www-data (nginx user)
# chmod o-rwx $final_path
# chown $app:www-data $final_path
chown -R $app $final_path/assets
chown -R $app $final_path/protected/config
chown -R $app $final_path/protected/modules
chown -R $app $final_path/protected/runtime
chown -R $app $final_path/uploads
# chown -R $app $final_path/assets
# chown -R $app $final_path/protected/config
# chown -R $app $final_path/protected/modules
# chown -R $app $final_path/protected/runtime
# chown -R $app $final_path/uploads
#=================================================
# SETUP CRON CONFIGURATION

View file

@ -95,6 +95,10 @@ then
ynh_secure_remove --file="$final_path.old"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
@ -162,18 +166,18 @@ chmod 644 "/etc/cron.d/$app"
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions on app files
chown -R root: $final_path
# # Set permissions on app files
# chown -R root: $final_path
# Remove permission to others than $app and www-data (nginx user)
chmod o-rwx $final_path
chown $app:www-data $final_path
# # Remove permission to others than $app and www-data (nginx user)
# chmod o-rwx $final_path
# chown $app:www-data $final_path
chown -R $app $final_path/assets
chown -R $app $final_path/protected/config
chown -R $app $final_path/protected/modules
chown -R $app $final_path/protected/runtime
chown -R $app $final_path/uploads
# chown -R $app $final_path/assets
# chown -R $app $final_path/protected/config
# chown -R $app $final_path/protected/modules
# chown -R $app $final_path/protected/runtime
# chown -R $app $final_path/uploads
#=================================================
# RELOAD NGINX