1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00
This commit is contained in:
Éric Gaspar 2024-08-31 21:50:40 +02:00
parent c63a6f0bd8
commit 91ff943585
4 changed files with 4 additions and 6 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__ WorkingDirectory=__INSTALL_DIR__
Environment="PATH=__ENV_PATH__" Environment="PATH=__PATH_WITH_NODEJS__"
ExecStart=__NODEJS_DIR__/npm start ExecStart=__NODEJS_DIR__/npm start
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit StandardError=inherit

View file

@ -17,7 +17,7 @@ userdoc = "https://hastebin.com/about.md"
code = "https://github.com/toptal/haste-server" code = "https://github.com/toptal/haste-server"
[integration] [integration]
yunohost = ">= 11.2.18" yunohost = ">= 11.2.29"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = false multi_instance = false

View file

@ -25,7 +25,6 @@ ynh_script_progression "Configuring NGINX web server..."
ynh_config_add_nginx ynh_config_add_nginx
env_path="$PATH"
ynh_config_add_systemd ynh_config_add_systemd
mkdir -p /var/log/$app 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..." ynh_script_progression "Installing $app..."
pushd "$install_dir" pushd "$install_dir"
ynh_hide_warnings npm install ynh_hide_warnings ynh_exec_as_app npm install
popd popd
#================================================= #=================================================

View file

@ -33,7 +33,6 @@ ynh_config_add_nginx
ynh_config_add_logrotate ynh_config_add_logrotate
env_path="$PATH"
ynh_config_add_systemd ynh_config_add_systemd
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log" 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..." ynh_script_progression "Installing $app..."
pushd "$install_dir" 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 popd
#================================================= #=================================================