Update scripts/install
This commit is contained in:
parent
300a1469af
commit
f19ffda5ff
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
### 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
|
||||
chmod 400 "$install_dir/some_config_file"
|
||||
chown "$app:$app" "$install_dir/some_config_file"
|
||||
chmod +x "$install_dir/run.sh"
|
||||
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,
|
||||
### you shoud rely on ynh_replace (which is basically a wrapper for sed)
|
||||
|
|
Loading…
Reference in a new issue