1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Small fixes

This commit is contained in:
ericgaspar 2021-02-01 22:59:46 +01:00
parent f633cbdd8b
commit dad5e0cac5
No known key found for this signature in database
GPG key ID: 574F281483054D44
9 changed files with 20 additions and 32 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/seejohnrun/haste-server/archive/677a22987adf0a364d8e03243d3ace20e11b4719.tar.gz
SOURCE_SUM=69cbc631151e09792b83e32b9d6fde8a3eabe40bf252a5b9a7065228aae4e167
SOURCE_URL=https://github.com/seejohnrun/haste-server/archive/5d2965ffc5d9b309ef6d4be9e8c2288c83d72c73.tar.gz
SOURCE_SUM=099bf0cec59614f0f6151f0809c8580b85d5fe701892dda96263b8aee743d5d8
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Open-source pastebin allowing to upload texts",
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
},
"version": "0.1.0~ynh4",
"version": "0.1.0~ynh5",
"url": "https://github.com/seejohnrun/haste-server",
"license": "MIT",
"maintainer": {
@ -29,17 +29,7 @@
"en": "Choose a domain name for Haste",
"fr": "Choisissez un nom de domaine pour Haste"
},
"example": "example.com"
},
{
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for Haste, only / is allowed.",
"fr": "Choisissez un chemin pour Haste, seul / est autorisé."
},
"example": "/",
"default": "/"
"example": "paste.example.com"
},
{
"name": "is_public",

View file

@ -13,6 +13,4 @@
## Package_check results
---
*If you have access to [App Continuous Integration for packagers](https://yunohost.org/#/packaging_apps_ci) you can provide a link to the package_check results like below, replacing '-NUM-' in this link by the PR number and USERNAME by your username on the ci-apps-dev. Or you provide a screenshot or a pastebin of the results*
[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/haste_ynh%20PR-NUM-%20(USERNAME)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/haste_ynh%20PR-NUM-%20(USERNAME)/)
* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"*

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
nodejs_version=12
nodejs_version=14
#=================================================
# PERSONAL HELPERS

View file

@ -108,7 +108,7 @@ fi
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# RELOAD NGINX

View file

@ -155,7 +155,7 @@ cp ../conf/haste.sh /usr/bin/$app
chown -R root: $final_path
chown -R $app: "$final_path/static"
chown -R $app: "$data_path"
chown -R $app: $data_path
chmod +x /usr/bin/$app
#=================================================
@ -174,7 +174,7 @@ ynh_use_logrotate
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
@ -182,16 +182,16 @@ yunohost service add $app --description="Haste is an open-source pastebin softwa
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=1
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================

View file

@ -101,7 +101,7 @@ chown $app -R /var/log/$app
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# RESTORE SYSTEMD
@ -116,7 +116,7 @@ systemctl enable $app.service --quiet
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION

View file

@ -172,21 +172,21 @@ cp ../conf/haste.sh /usr/bin/$app
chown -R root: $final_path
chown -R $app: "$final_path/static"
chown -R $app: "$data_path"
chown -R $app: $data_path
chmod +x /usr/bin/$app
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# RELOAD NGINX