mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
cleaning
This commit is contained in:
parent
c63a6f0bd8
commit
91ff943585
4 changed files with 4 additions and 6 deletions
|
@ -7,7 +7,7 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
Environment="PATH=__PATH_WITH_NODEJS__"
|
||||
ExecStart=__NODEJS_DIR__/npm start
|
||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||
StandardError=inherit
|
||||
|
|
|
@ -17,7 +17,7 @@ userdoc = "https://hastebin.com/about.md"
|
|||
code = "https://github.com/toptal/haste-server"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.2.18"
|
||||
yunohost = ">= 11.2.29"
|
||||
helpers_version = "2.1"
|
||||
architectures = "all"
|
||||
multi_instance = false
|
||||
|
|
|
@ -25,7 +25,6 @@ ynh_script_progression "Configuring NGINX web server..."
|
|||
|
||||
ynh_config_add_nginx
|
||||
|
||||
env_path="$PATH"
|
||||
ynh_config_add_systemd
|
||||
|
||||
mkdir -p /var/log/$app
|
||||
|
@ -53,7 +52,7 @@ ynh_replace --match="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.m
|
|||
ynh_script_progression "Installing $app..."
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_hide_warnings npm install
|
||||
ynh_hide_warnings ynh_exec_as_app npm install
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -33,7 +33,6 @@ ynh_config_add_nginx
|
|||
|
||||
ynh_config_add_logrotate
|
||||
|
||||
env_path="$PATH"
|
||||
ynh_config_add_systemd
|
||||
|
||||
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
|
||||
|
@ -44,7 +43,7 @@ yunohost service add $app --description="Haste is a pastebin software" --log="/v
|
|||
ynh_script_progression "Installing $app..."
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_hide_warnings ynh_hide_warnings ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install
|
||||
ynh_hide_warnings ynh_exec_as_app npm install
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue