mirror of
https://github.com/YunoHost-Apps/humhub_ynh.git
synced 2024-09-03 19:26:11 +02:00
Fix
This commit is contained in:
parent
1dbc215f9e
commit
c845bca885
2 changed files with 28 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue