1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scrutiny_ynh.git synced 2024-09-03 20:16:24 +02:00

Fix helpers 2.1

This commit is contained in:
Sylvain 2024-09-02 18:11:59 +02:00
parent ceda1b85ac
commit de1cdfb930
3 changed files with 18 additions and 0 deletions

View file

@ -4,3 +4,9 @@
# COMMON VARIABLES AND CUSTOM HELPERS
#=================================================
myynh_set_permissions () {
chown -R $app: "$install_dir"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chmod -R +x "$install_dir/bin/*"
}

View file

@ -57,6 +57,12 @@ ynh_config_add --template="config/scrutiny.yaml" --destination="$install_dir/con
ynh_config_add --template="systemd-scrutiny-collector.timer" --destination="/etc/systemd/system/scrutiny-collector.timer"
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
#=================================================
# SET FILE OWNERSHIP / PERMISSIONS
#=================================================
myynh_set_permissions
#=================================================
# START SYSTEMD SERVICE
#=================================================

View file

@ -69,6 +69,12 @@ ynh_config_add --template="config/scrutiny.yaml" --destination="$install_dir/con
ynh_config_add --template="systemd-scrutiny-collector.timer" --destination="/etc/systemd/system/scrutiny-collector.timer"
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
#=================================================
# SET FILE OWNERSHIP / PERMISSIONS
#=================================================
myynh_set_permissions
#=================================================
# START SYSTEMD SERVICE
#=================================================