mirror of
https://github.com/YunoHost-Apps/leantime_ynh.git
synced 2024-09-03 19:36:04 +02:00
Merge branch 'testing' into path
This commit is contained in:
commit
c82d156463
13 changed files with 34 additions and 51 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Leantime is a lean open source project management system for startups and innovators. It's an alternative to ClickUp, Notion, and Asana.
|
Leantime is a lean open source project management system for startups and innovators. It's an alternative to ClickUp, Notion, and Asana.
|
||||||
|
|
||||||
**Shipped version:** 2.3.21~ynh1
|
**Shipped version:** 2.3.25~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
Leantime est un système de gestion de projet open source allégé pour les startups et les innovateurs. C'est une alternative à ClickUp, Notion et Asana.
|
Leantime est un système de gestion de projet open source allégé pour les startups et les innovateurs. C'est une alternative à ClickUp, Notion et Asana.
|
||||||
|
|
||||||
**Version incluse :** 2.3.21~ynh1
|
**Version incluse :** 2.3.25~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
10
conf/.env
10
conf/.env
|
@ -6,7 +6,7 @@
|
||||||
LEAN_APP_URL = 'https://__DOMAIN__' # Base URL, only needed for subfolder installation
|
LEAN_APP_URL = 'https://__DOMAIN__' # Base URL, only needed for subfolder installation
|
||||||
LEAN_APP_URL_ROOT = '__PATH__' # Base of application withotu trailing slash (used for cookies), e.g, /leantime
|
LEAN_APP_URL_ROOT = '__PATH__' # Base of application withotu trailing slash (used for cookies), e.g, /leantime
|
||||||
|
|
||||||
LEAN_DEBUG = 1 # Debug flag
|
LEAN_DEBUG = 0 # Debug flag
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
LEAN_DB_HOST = 'localhost' # Database host
|
LEAN_DB_HOST = 'localhost' # Database host
|
||||||
|
@ -22,8 +22,8 @@ LEAN_DB_PORT = '3306' # Database port
|
||||||
LEAN_SITENAME = 'Leantime' # Name of your site, can be changed later
|
LEAN_SITENAME = 'Leantime' # Name of your site, can be changed later
|
||||||
LEAN_LANGUAGE = '__LANGUAGE__' # Default language
|
LEAN_LANGUAGE = '__LANGUAGE__' # Default language
|
||||||
LEAN_DEFAULT_TIMEZONE = '__TIMEZONE__' # Set default timezone
|
LEAN_DEFAULT_TIMEZONE = '__TIMEZONE__' # Set default timezone
|
||||||
LEAN_ENABLE_MENU_TYPE = false # Enable to specifiy menu on aproject by project basis
|
LEAN_ENABLE_MENU_TYPE = false # Enable to specifiy menu on a project by project basis
|
||||||
LEAN_SESSION_PASSWORD = '3evBlq9zdUEuzKvVJHWWx3QzsQhturBApxwcws2m' #Salting sessions. Replace with a strong password
|
LEAN_SESSION_PASSWORD = '__KEY__' #Salting sessions. Replace with a strong password
|
||||||
LEAN_SESSION_EXPIRATION = 28800 # How many seconds after inactivity should we logout? 28800seconds = 8hours
|
LEAN_SESSION_EXPIRATION = 28800 # How many seconds after inactivity should we logout? 28800seconds = 8hours
|
||||||
LEAN_LOG_PATH = null # Default Log Path (including filename), if not set /logs/error.log will be used
|
LEAN_LOG_PATH = null # Default Log Path (including filename), if not set /logs/error.log will be used
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ LEAN_KEEP_THEME = true # Keep theme and language fro
|
||||||
## Fileuploads
|
## Fileuploads
|
||||||
|
|
||||||
# Local File Uploads
|
# Local File Uploads
|
||||||
LEAN_USER_FILE_PATH = '__DATA_DIR__/userfiles/' # Local relative path to store uploaded files (if not using S3)
|
LEAN_USER_FILE_PATH = 'userfiles/' # Local relative path to store uploaded files (if not using S3)
|
||||||
LEAN_DB_BACKUP_PATH = '__DATA_DIR__/backupdb/' # Local relative path to store backup files, need permission to write
|
LEAN_DB_BACKUP_PATH = 'backupdb/' # Local relative path to store backup files, need permission to write
|
||||||
|
|
||||||
# S3 File Uploads
|
# S3 File Uploads
|
||||||
LEAN_USE_S3 = false # Set to true if you want to use S3 instead of local files
|
LEAN_USE_S3 = false # Set to true if you want to use S3 instead of local files
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
This is a dummy admin doc for this app
|
|
||||||
|
|
||||||
The app install dir is `__INSTALL_DIR__`
|
|
|
@ -1,3 +0,0 @@
|
||||||
Ceci est une fausse doc d'admin pour cette app
|
|
||||||
|
|
||||||
Le dossier d'install de l'app est `__INSTALL_DIR__`
|
|
|
@ -1,6 +0,0 @@
|
||||||
db username __DB_USER__
|
|
||||||
db name __DB_NAME__
|
|
||||||
db password __DB_PWD__
|
|
||||||
|
|
||||||
Navigate to __DOMAIN__/install
|
|
||||||
Follow instructions to install database and set up first user account
|
|
Binary file not shown.
Before Width: | Height: | Size: 805 KiB After Width: | Height: | Size: 159 KiB |
|
@ -2,10 +2,10 @@ packaging_format = 2
|
||||||
|
|
||||||
id = "leantime"
|
id = "leantime"
|
||||||
name = "Leantime"
|
name = "Leantime"
|
||||||
description.en = "project management system for startups and innovators"
|
description.en = "Project management system for startups and innovators"
|
||||||
description.fr = "système de gestion de projet pour les startups et les innovateurs"
|
description.fr = "Système de gestion de projet pour les startups et les innovateurs"
|
||||||
|
|
||||||
version = "2.3.21~ynh1"
|
version = "2.3.25~ynh1"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@ admindoc = "https://docs.leantime.io"
|
||||||
code = "https://github.com/Leantime/leantime"
|
code = "https://github.com/Leantime/leantime"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.18"
|
yunohost = ">= 11.1.21"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = true
|
ldap = false
|
||||||
sso = false
|
sso = false
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "50M"
|
ram.build = "50M"
|
||||||
|
@ -40,31 +40,29 @@ ram.runtime = "50M"
|
||||||
[install.language]
|
[install.language]
|
||||||
ask.en = "Choose the application language"
|
ask.en = "Choose the application language"
|
||||||
ask.fr = "Choisissez la langue de l'application"
|
ask.fr = "Choisissez la langue de l'application"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices = ["en-US", "es-ES", "it-IT", "fr-FR"]
|
choices = ["en-US", "es-ES", "it-IT", "fr-FR"]
|
||||||
default = "en-US"
|
default = "fr-FR"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/Leantime/leantime/releases/download/v2.3.21/Leantime-v2.3.21.tar.gz"
|
url = "https://github.com/Leantime/leantime/releases/download/v2.3.25/Leantime-v2.3.25.zip"
|
||||||
sha256 = "5a341c07322a067f9f439f826919318a3493e99b51fa6ac6d9513752f1bf3ad8"
|
sha256 = "aa42487659ace89bfa884226cf8a9070e2f1f45777edf726731760523fa903c3"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
autoupdate.asset = "Leantime-v*.zip"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
|
||||||
subdirs = ["userfiles", "backupdb"]
|
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "mariadb-server, php8.1-mysql, php8.1-mbstring, php8.1-xml, php8.1-curl, php8.1-gd, php8.1-imagick, php8.1-ldap"
|
packages = "mariadb-server, php8.2-mysql, php8.2-mbstring, php8.2-xml, php8.2-curl, php8.2-gd, php8.2-imagick, php8.2-ldap"
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -21,13 +21,6 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
ynh_backup --src_path="$install_dir"
|
ynh_backup --src_path="$install_dir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP THE DATA DIR
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Only relevant if there is a "data_dir" resource for this app
|
|
||||||
ynh_backup --src_path="$data_dir" --is_big
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
timezone="$(cat /etc/timezone)"
|
||||||
|
key=$(ynh_string_random --length=18)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY URL IN NGINX CONF
|
# MODIFY URL IN NGINX CONF
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -16,6 +19,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
|
||||||
|
|
||||||
ynh_change_url_nginx_config
|
ynh_change_url_nginx_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/.env" --destination="$install_dir/config/.env"
|
||||||
|
|
||||||
|
chmod 400 "$install_dir/config/.env"
|
||||||
|
chown $app:$app "$install_dir/config/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -10,6 +10,7 @@ source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
timezone="$(cat /etc/timezone)"
|
timezone="$(cat /etc/timezone)"
|
||||||
|
key=$(ynh_string_random --length=18)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
|
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
|
||||||
|
|
|
@ -19,16 +19,6 @@ ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE THE DATA DIRECTORY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the data directory..." --weight=1
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
|
||||||
|
|
||||||
# (Same as for install dir)
|
|
||||||
chown -R $app:www-data "$data_dir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MYSQL DATABASE
|
# RESTORE THE MYSQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue