mirror of
https://github.com/YunoHost-Apps/cachet_ynh.git
synced 2024-09-03 18:16:03 +02:00
cleaning
This commit is contained in:
parent
1752e23303
commit
35ffe15f83
2 changed files with 3 additions and 14 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue