1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cachet_ynh.git synced 2024-09-03 18:16:03 +02:00
This commit is contained in:
Éric Gaspar 2024-02-28 08:36:15 +01:00
parent 1752e23303
commit 35ffe15f83
2 changed files with 3 additions and 14 deletions

View file

@ -71,7 +71,7 @@ password_hash="$(cd $install_dir ; php$phpversion artisan tinker -q --no-ansi
password_pash="${password_hash::-1}" # Remove last character
# Populate MySQL database
ynh_add_config --template="../conf/init-mysql.sql" --destination="$install_dir/init-mysql.sql"
ynh_add_config --template="init-mysql.sql" --destination="$install_dir/init-mysql.sql"
ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < "$install_dir/init-mysql.sql"
ynh_delete_file_checksum --file="$install_dir/init-mysql.sql"
#REMOVEME? ynh_secure_remove --file="$install_dir/init-mysql.sql"

View file

@ -9,12 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# SET MAINTENANCE MODE ON
#=================================================
@ -25,14 +19,9 @@ exec_artisan "down"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep=".env bootstrap/cachet/production.php"
fi
ynh_setup_source --dest_dir="$install_dir" --keep=".env bootstrap/cachet/production.php"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"