mirror of
https://github.com/YunoHost-Apps/moodle_ynh.git
synced 2024-09-03 19:46:23 +02:00
Fix
This commit is contained in:
parent
7cefa74aa2
commit
760abf8c9a
2 changed files with 1 additions and 28 deletions
|
@ -1 +1 @@
|
||||||
*/15 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f __FINALPATH__/admin/cli/cron.php
|
*/15 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f __FINALPATH__/admin/cli/cron.php >/dev/null
|
||||||
|
|
|
@ -89,42 +89,15 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|
||||||
# then
|
|
||||||
# ynh_script_progression --message="Upgrading source files..." --weight=6
|
|
||||||
|
|
||||||
# # Create a temporary directory
|
|
||||||
# tmpdir="$(mktemp -d)"
|
|
||||||
|
|
||||||
# # Backup the config file in the temp dir
|
|
||||||
# cp -a "$final_path/config.php" "$tmpdir/config.php"
|
|
||||||
|
|
||||||
# # Remove the app directory securely
|
|
||||||
# ynh_secure_remove --file="$final_path"
|
|
||||||
|
|
||||||
# # Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
# ynh_setup_source --dest_dir="$final_path"
|
|
||||||
|
|
||||||
# # Copy the admin saved settings from tmp directory to final path
|
|
||||||
# cp -a "$tmpdir/config.php" "$final_path/config.php"
|
|
||||||
|
|
||||||
# # Remove the tmp directory securely
|
|
||||||
# ynh_secure_remove --file="$tmpdir"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=6
|
ynh_script_progression --message="Upgrading source files..." --weight=6
|
||||||
|
|
||||||
# Remove the app directory securely
|
|
||||||
#ynh_secure_remove --file="$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 --dest_dir="$final_path" --keep="$final_path/config.php"
|
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config.php"
|
||||||
php${phpversion} $final_path/admin/cli/upgrade.php
|
php${phpversion} $final_path/admin/cli/upgrade.php
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue