mirror of
https://github.com/YunoHost-Apps/gancio_ynh.git
synced 2024-09-03 20:36:19 +02:00
create log folder + fix build app typo
This commit is contained in:
parent
99903d7425
commit
8a1ee553bf
1 changed files with 2 additions and 1 deletions
|
@ -87,6 +87,7 @@ ynh_add_config --template="config.json" --destination="$install_dir/config.json"
|
||||||
# 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/config.json"
|
chmod 400 "$install_dir/config.json"
|
||||||
chown $app:$app "$install_dir/config.json"
|
chown $app:$app "$install_dir/config.json"
|
||||||
|
chown $app:$app "/var/log/$app"
|
||||||
|
|
||||||
### 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_string (which is basically a wrapper for sed)
|
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
|
||||||
|
@ -102,7 +103,7 @@ ynh_script_progression --message="Installing yarn dependency and building the ap
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH run build --config $install_dir/config.json# there is no "install" command, only build
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH run build --config $install_dir/config.json #There is no "install" command, only build
|
||||||
popd
|
popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP APPLICATION WITH CURL
|
# SETUP APPLICATION WITH CURL
|
||||||
|
|
Loading…
Add table
Reference in a new issue