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

Fix install

This commit is contained in:
Maniack Crudelis 2018-08-28 12:47:16 +02:00
parent 514668307a
commit 74ee4c2e15
9 changed files with 13 additions and 53 deletions

View file

@ -1,6 +1,6 @@
;; Test complet
; pre-install
git clone https://github.com/YunoHost/CI_package_check /home
git clone https://github.com/YunoHost/CI_package_check /home/CI_package_check
; Manifest
domain="domain.tld" (DOMAIN)
path="/path" (PATH)

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/YunoHost/yunorunner/archive/c5ef7b4856d5ab7abf1c0f63ee634d2da64ebc4b.zip
SOURCE_SUM=61f0cf03bf487a47568c6ccbd06de7b5
SOURCE_URL=https://github.com/YunoHost/yunorunner/archive/40d135bbd88f7dddff6342408d549b0f3eb3441e.zip
SOURCE_SUM=a67a310fda89cd9d9eb19446bbd104ef
SOURCE_SUM_PRG=md5sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true

View file

@ -8,9 +8,9 @@ location __PATH__/ {
proxy_pass http://127.0.0.1:4242;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade";
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# proxy_set_header Host $host;

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
ExecStart=__FINALPATH__/ve3/bin/python ./run.py /home/CI_package_check/analyseCI.sh | tee -a /var/log/__APP__/__APP__.log 2&>1
ExecStart=__FINALPATH__/ve3/bin/python ./run.py /home/CI_package_check/analyseCI.sh
[Install]
WantedBy=multi-user.target

View file

@ -41,12 +41,6 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# SPECIFIC BACKUP
#=================================================
# BACKUP LOGROTATE
#=================================================
ynh_backup "/etc/logrotate.d/$app"
#=================================================
# BACKUP SYSTEMD
#=================================================

View file

@ -127,20 +127,13 @@ ynh_add_systemd_config
# SECURING FILES AND DIRECTORIES
#=================================================
# Les fichiers appartiennent à root
chown -R root: $final_path
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_use_logrotate
chown -R $app:root $final_path
#=================================================
# ENABLE SERVICE IN ADMIN PANEL
#=================================================
yunohost service add NAME_INIT.D --log "/var/log/$app/$app.log"
yunohost service add $app.service
#=================================================
# SETUP SSOWAT

View file

@ -32,7 +32,7 @@ ynh_remove_systemd_config
if yunohost service status | grep -q $app # Test l'existence du service dans Yunohost
then
ynh_print_info "Remove $app service" >&2
yunohost service remove $app
yunohost service remove $app.service
fi
#=================================================
@ -53,12 +53,6 @@ ynh_secure_remove "/var/www/$app" # Suppression du dossier de l'application
ynh_remove_nginx_config # Suppression de la configuration nginx
#=================================================
# REMOVE THE LOGROTATE CONFIG
#=================================================
ynh_remove_logrotate # Suppression de la configuration de logrotate
#=================================================
# CLOSE A PORT
#=================================================
@ -69,13 +63,6 @@ then
ynh_exec_quiet yunohost firewall disallow TCP 4242
fi
#=================================================
# SPECIFIC REMOVE
#=================================================
# Suppression des log
ynh_secure_remove "/var/log/$app"
#=================================================
# GENERIC FINALISATION
#=================================================

View file

@ -65,8 +65,7 @@ ynh_system_user_create $app # Recreate the dedicated user, if not exist
# RESTORE USER RIGHTS
#=================================================
# Les fichiers appartiennent à root
chown -R root: $final_path
chown -R $app:root $final_path
#=================================================
# SPECIFIC RESTORE
@ -80,7 +79,7 @@ ynh_install_app_dependencies python-virtualenv sqlite3 zlib1g-dev
# ENABLE SERVICE IN ADMIN PANEL
#=================================================
yunohost service add $app --log "/var/log/$app/APP.log"
yunohost service add $app.service
#=================================================
# RESTORE SYSTEMD
@ -90,12 +89,6 @@ ynh_restore_file "/etc/systemd/system/$app.service"
## Démarrage auto du service
systemctl enable $app.service
#=================================================
# BACKUP OF THE LOGROTATE CONFIGURATION
#=================================================
ynh_restore_file "/etc/logrotate.d/$app"
#=================================================
# GENERIC FINALISATION
#=================================================

View file

@ -85,12 +85,6 @@ ynh_system_user_create $app # Create the dedicated user, if not exist
#=================================================
# SPECIFIC UPGRADE
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_use_logrotate --non-append
#=================================================
# SETUP SYSTEMD
#=================================================
@ -104,8 +98,7 @@ ynh_add_systemd_config
# SECURING FILES AND DIRECTORIES
#=================================================
# Les fichiers appartiennent à root
chown -R root: $final_path
chown -R $app:root $final_path
#=================================================
# SETUP SSOWAT