1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mytinytodo_ynh.git synced 2024-09-03 19:46:01 +02:00
This commit is contained in:
Éric Gaspar 2022-11-03 09:36:46 +01:00
parent cba98173fa
commit 535f9747a1
4 changed files with 4 additions and 18 deletions

View file

@ -21,4 +21,4 @@ define("MTT_DB_PREFIX", "");
// set mysqli if needed // set mysqli if needed
define("MTT_DB_DRIVER", "mysqli"); define("MTT_DB_DRIVER", "mysqli");
define("MTT_SALT", "Put random text here"); define("MTT_SALT", "__SALT__");

View file

@ -6,7 +6,7 @@
YNH_PHP_VERSION="8.0" YNH_PHP_VERSION="8.0"
pkg_dependencies="php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-pdo" pkg_dependencies="php${YNH_PHP_VERSION}-mysqli php${YNH_PHP_VERSION}-pdo"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -23,6 +23,7 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
salt=$(ynh_string_random --length=16)
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME

View file

@ -73,7 +73,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=2 ynh_script_progression --message="Upgrading source files..." --weight=2
# 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 --dest_dir="$final_path" --keep="db" ynh_setup_source --dest_dir="$final_path" --keep="db config.php"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -103,21 +103,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# RESTORE USER RIGHTS
#=================================================
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
chmod 600 "$final_path/config.php"
chown $app:$app "$final_path/config.php"
ynh_secure_remove --file="$final_path/setup.php"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================