1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

Added dependencies and permission to 700

This commit is contained in:
anmol26s 2018-09-13 12:15:56 +05:30
parent 67549d1bf9
commit 6a3e94173c
3 changed files with 12 additions and 3 deletions

View file

@ -83,6 +83,9 @@ ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path" ynh_setup_source "$final_path"
# install dependencies
ynh_install_app_dependencies php_gd php-xml mailutils
#================================================= #=================================================
# CREATE A MYSQL DATABASE # CREATE A MYSQL DATABASE
#================================================= #=================================================
@ -158,7 +161,7 @@ ynh_add_fpm_config
#================================================= #=================================================
chown -R $app: $final_path chown -R $app: $final_path
sudo chmod -R 777 $final_path/data sudo chmod -R 700 $final_path/data
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -62,6 +62,9 @@ ynh_restore_file "$final_path"
# Create the dedicated user (if not existing) # Create the dedicated user (if not existing)
ynh_system_user_create $app ynh_system_user_create $app
# install dependencies
ynh_install_app_dependencies php_gd php-xml mailutils
#================================================= #=================================================
# RESTORE USER RIGHTS # RESTORE USER RIGHTS
#================================================= #=================================================
@ -69,7 +72,7 @@ ynh_system_user_create $app
# Restore permissions to app files # Restore permissions to app files
sudo chown -R $app: "${final_path}" sudo chown -R $app: "${final_path}"
sudo chmod -R 777 $final_path/data sudo chmod -R 700 $final_path/data
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE

View file

@ -82,6 +82,9 @@ sudo rm -Rf ${final_path}.old
# Create a dedicated nginx config # Create a dedicated nginx config
ynh_add_nginx_config ynh_add_nginx_config
# install dependencies
ynh_install_app_dependencies php_gd php-xml mailutils
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
#================================================= #=================================================
@ -104,7 +107,7 @@ ynh_add_fpm_config
# Set permissions on app files # Set permissions on app files
chown -R $app: $final_path chown -R $app: $final_path
sudo chmod -R 777 $final_path/data sudo chmod -R 700 $final_path/data
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT