Update scripts/install

This commit is contained in:
denis 2024-11-15 12:04:44 -05:00
parent 47bef32ae2
commit ffdab037f9

View file

@ -69,14 +69,14 @@ ynh_script_progression "Adding $app's configuration files..."
### ###
### Check the documentation of `ynh_config_add` for more info. ### Check the documentation of `ynh_config_add` for more info.
ynh_config_add --template="run.sh" --destination="$install_dir/run.sh" #ynh_config_add --template="run.sh" --destination="$install_dir/run.sh"
# FIXME: this should be handled by the core in the future # FIXME: this should be handled by the core in the future
### You may need to use chmod 600 instead of 400, ### You may need to use chmod 600 instead of 400,
### for example if the app is expected to be able to modify its own config ### for example if the app is expected to be able to modify its own config
chmod +x "$install_dir/run.sh" #chmod +x "$install_dir/run.sh"
chmod 400 "$install_dir/run.sh" #chmod 400 "$install_dir/run.sh"
chown "$app:$app" "$install_dir/run.sh" #chown "$app:$app" "$install_dir/run.sh"
### For more complex cases where you want to replace stuff using regexes, ### For more complex cases where you want to replace stuff using regexes,
### you shoud rely on ynh_replace (which is basically a wrapper for sed) ### you shoud rely on ynh_replace (which is basically a wrapper for sed)