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:
parent
ceda1b85ac
commit
de1cdfb930
3 changed files with 18 additions and 0 deletions
|
@ -4,3 +4,9 @@
|
||||||
# COMMON VARIABLES AND CUSTOM HELPERS
|
# 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/*"
|
||||||
|
}
|
||||||
|
|
|
@ -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="systemd-scrutiny-collector.timer" --destination="/etc/systemd/system/scrutiny-collector.timer"
|
||||||
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
|
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SET FILE OWNERSHIP / PERMISSIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
myynh_set_permissions
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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="systemd-scrutiny-collector.timer" --destination="/etc/systemd/system/scrutiny-collector.timer"
|
||||||
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
|
ynh_config_add --template="config/collector.yaml" --destination="$install_dir/config/collector.yaml"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SET FILE OWNERSHIP / PERMISSIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
myynh_set_permissions
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue