mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
Fix upgrade
This commit is contained in:
parent
1ed99b5bd2
commit
b44e6c1da0
1 changed files with 5 additions and 3 deletions
|
@ -22,6 +22,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
|
||||||
videobridge_secret=$(ynh_app_setting_get --app=$app --key=videobridge_secret)
|
videobridge_secret=$(ynh_app_setting_get --app=$app --key=videobridge_secret)
|
||||||
focus_secret=$(ynh_app_setting_get --app=$app --key=focus_secret)
|
focus_secret=$(ynh_app_setting_get --app=$app --key=focus_secret)
|
||||||
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
port_component=$(ynh_app_setting_get --app=$app --key=port_component)
|
port_component=$(ynh_app_setting_get --app=$app --key=port_component)
|
||||||
|
|
||||||
focus_user=$(ynh_app_setting_get --app=$app --key=focus_user)
|
focus_user=$(ynh_app_setting_get --app=$app --key=focus_user)
|
||||||
|
@ -141,6 +142,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
mkdir -p "$final_path/.sip-communicator"
|
mkdir -p "$final_path/.sip-communicator"
|
||||||
cp ../conf/sip-communicator.properties "$final_path/.sip-communicator/sip-communicator.properties"
|
cp ../conf/sip-communicator.properties "$final_path/.sip-communicator/sip-communicator.properties"
|
||||||
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/.sip-communicator/sip-communicator.properties"
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -177,13 +179,13 @@ then
|
||||||
tar xf data.tar.xz
|
tar xf data.tar.xz
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
config="$final_path/jitsi-meet/config.js"
|
||||||
|
ynh_backup_if_checksum_is_different --file="$config"
|
||||||
|
|
||||||
ynh_secure_remove --file="$final_path/jitsi-meet"
|
ynh_secure_remove --file="$final_path/jitsi-meet"
|
||||||
|
|
||||||
mv "$final_path/jitsi-meet_temp/usr/share/jitsi-meet/" "$final_path/jitsi-meet/"
|
mv "$final_path/jitsi-meet_temp/usr/share/jitsi-meet/" "$final_path/jitsi-meet/"
|
||||||
ynh_secure_remove --file="$final_path/jitsi-meet_temp"
|
ynh_secure_remove --file="$final_path/jitsi-meet_temp"
|
||||||
|
|
||||||
config="$final_path/jitsi-meet/config.js"
|
|
||||||
ynh_backup_if_checksum_is_different --file="$config"
|
|
||||||
cp ../conf/config.js "$config"
|
cp ../conf/config.js "$config"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$config"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$config"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue