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:
parent
67549d1bf9
commit
6a3e94173c
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue