1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webmin_ynh.git synced 2024-09-03 20:36:08 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2020-10-10 12:33:16 +02:00
parent a4cbfff76c
commit 18079a15fe
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -21,6 +21,12 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
admin=$(ynh_app_setting_get --app=$app --key=admin) admin=$(ynh_app_setting_get --app=$app --key=admin)
port=$(ynh_app_setting_get --app=$app --key=port) port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# CHECK THE PATH # CHECK THE PATH
#================================================= #=================================================
@ -37,7 +43,7 @@ ynh_script_progression --message="Upgrading nginx web server configuration..." -
ynh_add_nginx_config ynh_add_nginx_config
#================================================= #=================================================
STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Stopping a systemd service..." --time --weight=1 ynh_script_progression --message="Stopping a systemd service..." --time --weight=1
@ -54,16 +60,16 @@ ynh_install_app_dependencies $pkg_dependencies
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
sudo sh -c "echo 'deb http://download.webmin.com/download/repository sarge contrib' > /etc/apt/sources.list.d/webmin.list" ynh_install_extra_app_dependencies --repo="deb http://download.webmin.com/download/repository sarge contrib" --package="webmin" --key="http://www.webmin.com/jcameron-key.asc"
sudo sh -c "echo 'deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib' >> /etc/apt/sources.list.d/webmin.list"
wget http://www.webmin.com/jcameron-key.asc # sh -c "echo 'deb http://download.webmin.com/download/repository sarge contrib' > /etc/apt/sources.list.d/webmin.list"
apt-key add jcameron-key.asc # sh -c "echo 'deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib' >> /etc/apt/sources.list.d/webmin.list"
rm jcameron-key.asc
sudo apt-get update # wget http://www.webmin.com/jcameron-key.asc
sudo apt-get upgrade # apt-key add jcameron-key.asc
# rm jcameron-key.asc
# apt-get update && upgrade
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
@ -99,6 +105,3 @@ ynh_script_progression --message="Starting webmin web server..." --time --weight
ynh_systemd_action --service_name=$app --action=enable ynh_systemd_action --service_name=$app --action=enable
ynh_systemd_action --service_name=$app --action=start ynh_systemd_action --service_name=$app --action=start