mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix permissions
This commit is contained in:
parent
2371be637c
commit
c15a3f8ad1
3 changed files with 18 additions and 0 deletions
|
@ -81,6 +81,12 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|||
cp -r "../conf/homeassistant_conf_files/." "$data_dir/"
|
||||
ynh_add_config --template="../conf/homeassistant_conf_files/configuration.yaml" --destination="$data_dir/configuration.yaml"
|
||||
|
||||
#=================================================
|
||||
# SET FILE OWNERSHIP / PERMISSIONS
|
||||
#=================================================
|
||||
|
||||
myynh_set_permissions
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
|
@ -79,6 +79,12 @@ if [ ! -e "$hass_python_link" ] ; then
|
|||
ln -sfn "$hass_python_new_dest" "$hass_python_link"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# SET FILE OWNERSHIP / PERMISSIONS
|
||||
#=================================================
|
||||
|
||||
myynh_set_permissions
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
|
@ -61,6 +61,12 @@ ynh_script_progression --message="Updating a configuration file..."
|
|||
cp -r "../conf/homeassistant_conf_files/bin/." "$data_dir/bin/"
|
||||
ynh_add_config --template="../conf/sudoers" --destination="/etc/sudoers.d/$app"
|
||||
|
||||
#=================================================
|
||||
# SET FILE OWNERSHIP / PERMISSIONS
|
||||
#=================================================
|
||||
|
||||
myynh_set_permissions
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue