mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Update upgrade
This commit is contained in:
parent
b4ad39fe3d
commit
ed593c5d69
1 changed files with 6 additions and 6 deletions
|
@ -28,6 +28,12 @@ if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# move $home_path to new directory
|
||||||
|
if [ -d "$home_path" ] ; then
|
||||||
|
mv "/home/$app" "$home_path"
|
||||||
|
chown -R $app: "$home_path"
|
||||||
|
fi
|
||||||
|
|
||||||
# grant sudo permissions to the user to manage his own systemd service
|
# grant sudo permissions to the user to manage his own systemd service
|
||||||
ynh_script_progression --message="Creating dedicated user, rights and folders..."
|
ynh_script_progression --message="Creating dedicated user, rights and folders..."
|
||||||
myynh_create_dir "/etc/sudoers.d"
|
myynh_create_dir "/etc/sudoers.d"
|
||||||
|
@ -44,12 +50,6 @@ ynh_systemd_action --service_name="$app@$app" --action=stop
|
||||||
ynh_script_progression --message="Installing Home Assistant in a virtual environment..."
|
ynh_script_progression --message="Installing Home Assistant in a virtual environment..."
|
||||||
myynh_install_homeassistant "$home_path"
|
myynh_install_homeassistant "$home_path"
|
||||||
|
|
||||||
# move $home_path to new directory
|
|
||||||
if [ -d "$home_path" ] ; then
|
|
||||||
mv "/home/$app" "$home_path"
|
|
||||||
chown -R $app: "$home_path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# update script in bin
|
# update script in bin
|
||||||
ynh_script_progression --message="Updating YunoHost script used by homeassitant..."
|
ynh_script_progression --message="Updating YunoHost script used by homeassitant..."
|
||||||
cp -r "../conf/homeassistant_conf_files/bin/." "$home_path/.$app/bin/"
|
cp -r "../conf/homeassistant_conf_files/bin/." "$home_path/.$app/bin/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue