1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/openproject_ynh.git synced 2024-09-03 19:56:10 +02:00

Hotfix uncompat YNH3.5

This commit is contained in:
Moutonjr Geoff 2019-10-03 17:25:51 +02:00
parent 9d6d0f95cb
commit 6fa1c20588
4 changed files with 10 additions and 15 deletions

View file

@ -12,8 +12,8 @@ Package will be in v1 and in "working" conditions in Yunohost-Apps when:
- [ ] Measure timing of installer to bring proper weight
And some breadcrumbs:
- [ ] change way to install ruby with crappy `rbenv`
- [ ] Remove: if the PostgreSQL is empty, remove it
- [x] change way to install ruby with crappy `rbenv`
- [x] Remove: if the PostgreSQL is empty, remove it ==> NOT APPLICABLE ANYMORE
- [ ] fully remove `/var/$app` (ynh helper crappy?)
Goal of full-quality :)

View file

@ -12,13 +12,6 @@
*This package allow you to install Openproject quickly and simply on a YunoHost server.
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
** Warning: Still Building! **
- [ ] Remove all the TODOs
- [ ] Perform first install with Vagrant
- [ ] Perform Full install
- [ ] Perform the Package checker
- [ ] Notify YNH Team about publication & testing.
## Overview
OpenProject is a web-based project management software. Its key features are:

View file

@ -81,7 +81,8 @@ ynh_system_user_create --username="$app" --home_dir="$_homedir" -s
ynh_script_progression --message="Installing OpenProject & its dependencies..." --weight=1
# Add Openproject Key & repo
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add - >/dev/null
# Var APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE to disable the STDOUT redirection warning
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - >/dev/null
wget -qO /etc/apt/sources.list.d/openproject.list https://dl.packager.io/srv/opf/openproject/stable/10/installer/debian/9.repo
ynh_install_app_dependencies "$pkg_dependencies"
@ -179,11 +180,11 @@ 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"
systemctl restart openproject.service
# SETUP FAIL2BAN
ynh_script_progression --message="Configuring fail2ban..." --weight=1
# Create a dedicated fail2ban config
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
## SETUP FAIL2BAN
#ynh_script_progression --message="Configuring fail2ban..." --weight=1
#
## Create a dedicated fail2ban config
#ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
#=================================================
# SETUP SSOWAT

View file

@ -67,6 +67,7 @@ ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
ynh_secure_remove --file="$_homedir"
ynh_secure_remove --file="/etc/$app/"
#=================================================
# REMOVE NGINX CONFIGURATION