Update scripts/install

This commit is contained in:
denis 2024-11-07 04:34:20 -05:00
parent 300a1469af
commit f19ffda5ff

View file

@ -74,8 +74,9 @@ 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 400 "$install_dir/some_config_file" chmod +x "$install_dir/run.sh"
chown "$app:$app" "$install_dir/some_config_file" chmod 400 "$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)