1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
This commit is contained in:
Éric Gaspar 2022-06-06 16:13:41 +02:00
parent de0c4df18b
commit 0b3fe969e1
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 8 additions and 7 deletions

View file

@ -119,7 +119,7 @@ ynh_add_nginx_config
#================================================= #=================================================
# CREATE CONFIG.PHP # CREATE CONFIG.PHP
#================================================= #=================================================
ynh_script_progression --message="Configuring Kanboard..." ynh_script_progression --message="Configuring the app..."
dir="__DIR__" dir="__DIR__"
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
@ -158,7 +158,7 @@ chmod 644 "/etc/cron.d/$app"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=2 ynh_script_progression --message="Configuring permissions..." --weight=2
# Make app public or private # Make app public or private
if [ $is_public -eq 1 ] if [ $is_public -eq 1 ]
@ -169,7 +169,8 @@ then
ynh_replace_string --match_string="define('REMEMBER_ME_AUTH'.*$" --replace_string="define('REMEMBER_ME_AUTH', true);" --target_file="$final_path/config.php" ynh_replace_string --match_string="define('REMEMBER_ME_AUTH'.*$" --replace_string="define('REMEMBER_ME_AUTH', true);" --target_file="$final_path/config.php"
ynh_replace_string --match_string="define('DISABLE_LOGOUT'.*$" --replace_string="define('DISABLE_LOGOUT', false);" --target_file="$final_path/config.php" ynh_replace_string --match_string="define('DISABLE_LOGOUT'.*$" --replace_string="define('DISABLE_LOGOUT', false);" --target_file="$final_path/config.php"
else else
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/jsonrpc.php" ynh_permission_update --permission="main" --url="/jsonrpc.php" --add="visitors"
#ynh_app_setting_set --app=$app --key=unprotected_uris --value="/jsonrpc.php"
fi fi
# Calculate and store the config file checksum into the app settings # Calculate and store the config file checksum into the app settings

View file

@ -42,7 +42,7 @@ ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
#================================================= #=================================================
# REMOVE APP MAIN DIR # REMOVE APP MAIN DIR
#================================================= #=================================================
ynh_script_progression --message="Removing Kanboard main directory..." ynh_script_progression --message="Removing the app main directory..."
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"

View file

@ -50,7 +50,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#================================================= #=================================================
# RESTORE THE APP MAIN DIR # RESTORE THE APP MAIN DIR
#================================================= #=================================================
ynh_script_progression --message="Restoring Kanboard main directory..." --weight=5 ynh_script_progression --message="Restoring the app main directory..." --weight=5
ynh_restore_file --origin_path="$final_path" ynh_restore_file --origin_path="$final_path"

View file

@ -32,7 +32,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================
ynh_script_progression --message="Backing up Kanboard before upgrading (may take a while)..." --weight=5 ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=5
# Backup the current version of the app # Backup the current version of the app
ynh_backup_before_upgrade ynh_backup_before_upgrade
@ -124,7 +124,7 @@ ynh_add_nginx_config
#================================================= #=================================================
# UPGRADE KANBOARD # UPGRADE KANBOARD
#================================================= #=================================================
ynh_script_progression --message="Upgrading Kanboard..." --weight=2 ynh_script_progression --message="Upgrading the app..." --weight=2
pushd $final_path pushd $final_path
# Launch database migration # Launch database migration