mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
commit
ff2200caeb
9 changed files with 42 additions and 18 deletions
|
@ -25,7 +25,7 @@ Kanboard is a free and open source Kanban project management software.
|
||||||
- Drag and drop tasks to manage your project
|
- Drag and drop tasks to manage your project
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.2.35~ynh1
|
**Shipped version:** 1.2.35~ynh2
|
||||||
|
|
||||||
**Demo:** https://demo.yunohost.org/kanboard/
|
**Demo:** https://demo.yunohost.org/kanboard/
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ Kanboard est un logiciel de gestion de projet Kanban gratuit et open source.
|
||||||
- Glisser et déposez des tâches pour gérer votre projet
|
- Glisser et déposez des tâches pour gérer votre projet
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 1.2.35~ynh1
|
**Version incluse :** 1.2.35~ynh2
|
||||||
|
|
||||||
**Démo :** https://demo.yunohost.org/kanboard/
|
**Démo :** https://demo.yunohost.org/kanboard/
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
|
|
||||||
// Data folder (must be writeable by the web server user and absolute)
|
// Data folder (must be writeable by the web server user and absolute)
|
||||||
define('DATA_DIR', __DIR__.DIRECTORY_SEPARATOR.'data');
|
define('DATA_DIR', '__DATA_DIR__/');
|
||||||
|
|
||||||
// Enable/Disable debug
|
// Enable/Disable debug
|
||||||
define('DEBUG', false);
|
define('DEBUG', false);
|
||||||
|
@ -16,10 +16,10 @@ define('DEBUG', false);
|
||||||
define('LOG_DRIVER', 'system');
|
define('LOG_DRIVER', 'system');
|
||||||
|
|
||||||
// Log filename if the log driver is "file"
|
// Log filename if the log driver is "file"
|
||||||
define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.log');
|
define('LOG_FILE', '__DATA_DIR__/debug.log');
|
||||||
|
|
||||||
// Plugins directory
|
// Plugins directory
|
||||||
define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins');
|
define('PLUGINS_DIR', '__INSTALL_DIR__/plugins');
|
||||||
|
|
||||||
// Plugins directory URL
|
// Plugins directory URL
|
||||||
define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
||||||
|
@ -33,10 +33,10 @@ define('PLUGIN_INSTALLER', true);
|
||||||
define('CACHE_DRIVER', 'memory');
|
define('CACHE_DRIVER', 'memory');
|
||||||
|
|
||||||
// Cache folder to use if cache driver is "file" (must be writeable by the web server user)
|
// Cache folder to use if cache driver is "file" (must be writeable by the web server user)
|
||||||
define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
|
define('CACHE_DIR', '__DATA_DIR__/cache');
|
||||||
|
|
||||||
// Folder for uploaded files (must be writeable by the web server user)
|
// Folder for uploaded files (must be writeable by the web server user)
|
||||||
define('FILES_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'files');
|
define('FILES_DIR', '__DATA_DIR__/files');
|
||||||
|
|
||||||
// Enable/disable email configuration from the user interface
|
// Enable/disable email configuration from the user interface
|
||||||
define('MAIL_CONFIGURATION', true);
|
define('MAIL_CONFIGURATION', true);
|
||||||
|
|
|
@ -14,11 +14,6 @@ location __PATH__/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Deny access to the directory data
|
|
||||||
location __PATH__/data {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
try_files $uri $uri/ __PATH__/index.php;
|
try_files $uri $uri/ __PATH__/index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Kanboard"
|
||||||
description.en = "Kanban project management software"
|
description.en = "Kanban project management software"
|
||||||
description.fr = "Logiciel de gestion de projet Kanban"
|
description.fr = "Logiciel de gestion de projet Kanban"
|
||||||
|
|
||||||
version = "1.2.35~ynh1"
|
version = "1.2.35~ynh2"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -59,6 +59,9 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
|
[resources.data_dir]
|
||||||
|
subdirs = ["cache", "files"]
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
ics.url = "/?controller=ICalendarController"
|
ics.url = "/?controller=ICalendarController"
|
||||||
|
|
|
@ -21,6 +21,13 @@ 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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -35,7 +35,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
mkdir -p $install_dir/sessions/
|
mkdir -p $install_dir/sessions/
|
||||||
|
|
||||||
chown -R $app $install_dir/{data,plugins,sessions}
|
chown -R $app $install_dir/{plugins,sessions}
|
||||||
chmod -R 700 $install_dir/sessions
|
chmod -R 700 $install_dir/sessions
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
|
@ -24,6 +24,16 @@ chmod -R 700 $install_dir/sessions
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -49,12 +49,12 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=3
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep="data/ config.php"
|
ynh_setup_source --dest_dir="$install_dir" --keep="config.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $install_dir/sessions/
|
mkdir -p $install_dir/sessions/
|
||||||
|
|
||||||
chown -R $app $install_dir/{data,plugins,sessions}
|
chown -R $app $install_dir/{plugins,sessions}
|
||||||
chmod -R 700 $install_dir/sessions
|
chmod -R 700 $install_dir/sessions
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
@ -77,6 +77,17 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
chown root: "/etc/cron.d/$app"
|
chown root: "/etc/cron.d/$app"
|
||||||
chmod 644 "/etc/cron.d/$app"
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
|
dir="__DIR__"
|
||||||
|
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
|
chmod 400 "$install_dir/config.php"
|
||||||
|
chown $app "$install_dir/config.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -87,8 +98,6 @@ ynh_script_progression --message="Upgrading the app..." --weight=2
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
# Launch database migration
|
# Launch database migration
|
||||||
php$phpversion cli db:migrate --no-interaction --verbose
|
php$phpversion cli db:migrate --no-interaction --verbose
|
||||||
# Launch plugins migration
|
|
||||||
#php$phpversion cli plugin:upgrade --no-interaction --verbose
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue