mirror of
https://github.com/YunoHost-Apps/teampass_ynh.git
synced 2024-09-03 20:26:37 +02:00
cleaning
This commit is contained in:
parent
5da293afb1
commit
516650cd9d
2 changed files with 5 additions and 14 deletions
|
@ -28,10 +28,8 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
|
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
ynh_add_fpm_config
|
||||||
ynh_add_fpm_config --usage=low --footprint=low
|
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -72,7 +70,7 @@ ynh_secure_remove --file="$install_dir/populate.sql"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
ynh_add_config --template="../conf/settings.php" --destination="$install_dir/includes/config/settings.php"
|
ynh_add_config --template="settings.php" --destination="$install_dir/includes/config/settings.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE TP.CONFIG.PHP FILE
|
# CREATE TP.CONFIG.PHP FILE
|
||||||
|
@ -92,7 +90,7 @@ ynh_script_progression --message="Creating a saltkey..."
|
||||||
|
|
||||||
saltkey=$(ynh_string_random --length=32)
|
saltkey=$(ynh_string_random --length=32)
|
||||||
mkdir /etc/$app/
|
mkdir /etc/$app/
|
||||||
ynh_add_config --template="../conf/sk.php" --destination="/etc/$app/sk.php"
|
ynh_add_config --template="sk.php" --destination="/etc/$app/sk.php"
|
||||||
chown -R $app /etc/$app/
|
chown -R $app /etc/$app/
|
||||||
chmod 750 /etc/$app/
|
chmod 750 /etc/$app/
|
||||||
|
|
||||||
|
|
|
@ -44,15 +44,8 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
ynh_add_fpm_config
|
||||||
ynh_add_fpm_config --usage=low --footprint=low
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
|
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -81,7 +74,7 @@ echo ");" >> $tp_config_file
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..."
|
ynh_script_progression --message="Updating a configuration file..."
|
||||||
|
|
||||||
ynh_add_config --template="../conf/settings.php" --destination="$install_dir/includes/config/settings.php"
|
ynh_add_config --template="settings.php" --destination="$install_dir/includes/config/settings.php"
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue