mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Fix
This commit is contained in:
parent
1fefebb0ea
commit
4c9ac76444
3 changed files with 11 additions and 14 deletions
5
.github/workflows/updater.sh
vendored
5
.github/workflows/updater.sh
vendored
|
@ -67,12 +67,9 @@ echo "Handling asset at $asset_url"
|
||||||
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
||||||
# Leave $src empty to ignore the asset
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*"admin"*)
|
*"baikal-"*".zip")
|
||||||
src="app"
|
src="app"
|
||||||
;;
|
;;
|
||||||
*"update"*)
|
|
||||||
src="app-upgrade"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
src=""
|
src=""
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -43,12 +43,12 @@ ynh_script_progression --message="Changing the password..." --weight=1
|
||||||
|
|
||||||
bk_conf="${final_path}/config/baikal.yaml"
|
bk_conf="${final_path}/config/baikal.yaml"
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="${final_path}/config/baikal.yaml"
|
ynh_backup_if_checksum_is_different --file="$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
ynh_replace_string --match_string="${password_hash_old}" --replace_string="${password_hash}" --target_file="$bk_conf"
|
ynh_replace_string --match_string="${password_hash_old}" --replace_string="${password_hash}" --target_file="$final_path/config/baikal.yaml"
|
||||||
ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash
|
ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash
|
||||||
|
|
||||||
ynh_store_file_checksum --file="${final_path}/config/baikal.yaml"
|
ynh_store_file_checksum --file="$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue