mirror of
https://github.com/YunoHost-Apps/kimai2_ynh.git
synced 2024-09-03 19:26:26 +02:00
Update upgrade
This commit is contained in:
parent
268c7e0c3b
commit
f49de48888
1 changed files with 18 additions and 15 deletions
|
@ -110,8 +110,9 @@ then
|
||||||
if [ -d $final_path/var/data ]; then
|
if [ -d $final_path/var/data ]; then
|
||||||
cp -af "$final_path/var/data" "$tmpdir/."
|
cp -af "$final_path/var/data" "$tmpdir/."
|
||||||
fi
|
fi
|
||||||
|
$final_path/.env
|
||||||
|
|
||||||
ynh_secure_remove --file="$final_path"
|
cp -a "$final_path/.env" "$tmpdir/.env"
|
||||||
|
|
||||||
# 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"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
@ -127,6 +128,8 @@ then
|
||||||
cp -af "$tmpdir/data" "$final_path/var/."
|
cp -af "$tmpdir/data" "$final_path/var/."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp -a "$tmpdir/.env" "$final_path/.env"
|
||||||
|
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -151,22 +154,22 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE KIMAI2
|
# CONFIGURE KIMAI2
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Kimai2..."
|
# ynh_script_progression --message="Configuring Kimai2..."
|
||||||
|
|
||||||
local_conf="$final_path/config/packages/local.yaml"
|
# local_conf="$final_path/config/packages/local.yaml"
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$local_conf"
|
# ynh_backup_if_checksum_is_different --file="$local_conf"
|
||||||
cp ../conf/local.yaml $local_conf
|
# cp ../conf/local.yaml $local_conf
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$local_conf"
|
# ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$local_conf"
|
||||||
if [ $registration -eq 1 ]
|
# if [ $registration -eq 1 ]
|
||||||
then
|
# then
|
||||||
ynh_replace_string --match_string="__REGISTRATION__" --replace_string="true" --target_file="$local_conf"
|
# ynh_replace_string --match_string="__REGISTRATION__" --replace_string="true" --target_file="$local_conf"
|
||||||
else
|
# else
|
||||||
ynh_replace_string --match_string="__REGISTRATION__" --replace_string="false" --target_file="$local_conf"
|
# ynh_replace_string --match_string="__REGISTRATION__" --replace_string="false" --target_file="$local_conf"
|
||||||
fi
|
# fi
|
||||||
ynh_store_file_checksum --file="$local_conf"
|
# ynh_store_file_checksum --file="$local_conf"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/.env.mysql" --destination="$final_path/.env"
|
#ynh_add_config --template="../conf/.env.mysql" --destination="$final_path/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE KIMAI2
|
# UPGRADE KIMAI2
|
||||||
|
|
Loading…
Add table
Reference in a new issue