From 6715a22a96199fee9f06b3c4560b76a4450c8aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 20 Jun 2023 23:26:07 +0200 Subject: [PATCH 01/30] Version 2 (#32) * v2 * Auto-update README * v2 * fix * Auto-update README --------- Co-authored-by: yunohost-bot --- CHANGELOG.md | 17 -- README.md | 16 +- README_fr.md | 34 ++-- check_process | 26 --- conf/app.src | 7 - conf/extra_php-fpm.conf | 4 + conf/nginx.conf | 2 +- conf/php-fpm.conf | 430 ---------------------------------------- doc/DESCRIPTION.md | 2 +- doc/DISCLAIMER.md | 8 - manifest.json | 68 ------- manifest.toml | 68 +++++++ scripts/_common.sh | 6 +- scripts/backup | 24 +-- scripts/change_url | 103 +--------- scripts/install | 130 ++---------- scripts/remove | 49 ----- scripts/restore | 71 +------ scripts/upgrade | 88 +------- tests.toml | 9 + 20 files changed, 140 insertions(+), 1022 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 check_process delete mode 100644 conf/app.src create mode 100644 conf/extra_php-fpm.conf delete mode 100644 conf/php-fpm.conf delete mode 100644 doc/DISCLAIMER.md delete mode 100644 manifest.json create mode 100644 manifest.toml create mode 100644 tests.toml diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 22947af..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,17 +0,0 @@ -Changelog -========= - -## Unreleased -- Nothing for now... - -## [2.3.18~ynh1](https://github.com/YunoHost-Apps/cachet_ynh/pull/13) - 2020-05-21 - -#### Added -* Add changelog -* Add issue template - -#### Fixed -* fix buster support - -#### Changed -* Use latest packaging guidelines \ No newline at end of file diff --git a/README.md b/README.md index c0d53cf..3cf685c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Cachet for YunoHost -[![Integration level](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Working status](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Working status](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) + [![Install Cachet with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) *[Lire ce readme en français.](./README_fr.md)* @@ -15,7 +16,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview -[Cachet](https://cachethq.io/) is a free, open source status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. +Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. **Shipped version:** 2.4.0~ynh5 @@ -26,17 +27,6 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ![Screenshot of Cachet](./doc/screenshots/main-interface.png) -## Disclaimers / important information - -## Configuration - -Totally configurable through the Cachet application dashboard. - -## Limitations - -- Must necessarily be installed on domain root (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/1696)) -- Can't integrate with YunoHost SSO as LDAP support is not implemented yet (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/2108)) - ## Documentation and resources * Official app website: diff --git a/README_fr.md b/README_fr.md index 466cc0e..ac8d140 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,43 +5,33 @@ It shall NOT be edited by hand. # Cachet pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) + [![Installer Cachet avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) *[Read this readme in english.](./README.md)* -> *Ce package vous permet d'installer Cachet rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer Cachet rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble -[Cachet](https://cachethq.io/) is a free, open source status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. +Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. **Version incluse :** 2.4.0~ynh5 **Démo :** https://demo.cachethq.io -## Captures d'écran +## Captures d’écran -![Capture d'écran de Cachet](./doc/screenshots/main-interface.png) - -## Avertissements / informations importantes - -## Configuration - -Totally configurable through the Cachet application dashboard. - -## Limitations - -- Must necessarily be installed on domain root (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/1696)) -- Can't integrate with YunoHost SSO as LDAP support is not implemented yet (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/2108)) +![Capture d’écran de Cachet](./doc/screenshots/main-interface.png) ## Documentations et ressources -* Site officiel de l'app : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -57,4 +47,4 @@ ou sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file diff --git a/check_process b/check_process deleted file mode 100644 index 38411ef..0000000 --- a/check_process +++ /dev/null @@ -1,26 +0,0 @@ -;; Test complet - ; Manifest - domain="domain.tld" - is_public=1 - language="en" - admin="john" - password="1Strong-Password" - ; Checks - pkg_linter=1 - setup_sub_dir=0 - setup_root=1 - setup_nourl=0 - setup_private=1 - setup_public=1 - upgrade=1 - # 2.4.0~ynh3 - upgrade=1 from_commit=1a0fd240d86ffaf5bcee61c176a22a7d075688a6 - # 2.4.0~ynh4 - upgrade=1 from_commit=6fcddf81286fb845735978ed832c9273c3b783ce - backup_restore=1 - multi_instance=1 - port_already_use=0 - change_url=1 -;;; Options -Email= -Notification=none diff --git a/conf/app.src b/conf/app.src deleted file mode 100644 index b0ef10a..0000000 --- a/conf/app.src +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_URL=https://github.com/CachetHQ/Cachet/archive/cf86f65f1dabf283d001d0f5d380f26dd5cfb64c.tar.gz -SOURCE_SUM=be48fdeacc093c9e688ecd9cef61e0304a856fcd6281066552bfecd8355fa35e -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=tar.gz -SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= -SOURCE_EXTRACT=true diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf new file mode 100644 index 0000000..700c37c --- /dev/null +++ b/conf/extra_php-fpm.conf @@ -0,0 +1,4 @@ +; Additional php.ini defines, specific to this pool of workers. + +php_admin_value[upload_max_filesize] = 50M +php_admin_value[post_max_size] = 50M diff --git a/conf/nginx.conf b/conf/nginx.conf index fc0a823..badda2d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ location __PATH__/ { # Path to source - alias __FINALPATH__/public/ ; + alias __INSTALL_DIR__/public/; index index.php; diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf deleted file mode 100644 index a0862b0..0000000 --- a/conf/php-fpm.conf +++ /dev/null @@ -1,430 +0,0 @@ -; Start a new pool named 'www'. -; the variable $pool can be used in any directive and will be replaced by the -; pool name ('www' here) -[__NAMETOCHANGE__] - -; Per pool prefix -; It only applies on the following directives: -; - 'access.log' -; - 'slowlog' -; - 'listen' (unixsocket) -; - 'chroot' -; - 'chdir' -; - 'php_values' -; - 'php_admin_values' -; When not set, the global prefix (or /usr) applies instead. -; Note: This directive can also be relative to the global prefix. -; Default Value: none -;prefix = /path/to/pools/$pool - -; Unix user/group of processes -; Note: The user is mandatory. If the group is not set, the default user's group -; will be used. -user = __USER__ -group = __USER__ - -; The address on which to accept FastCGI requests. -; Valid syntaxes are: -; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on -; a specific port; -; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on -; a specific port; -; 'port' - to listen on a TCP socket to all addresses -; (IPv6 and IPv4-mapped) on a specific port; -; '/path/to/unix/socket' - to listen on a unix socket. -; Note: This value is mandatory. -listen = /var/run/php/php__PHPVERSION__-fpm-__NAMETOCHANGE__.sock - -; Set listen(2) backlog. -; Default Value: 511 (-1 on FreeBSD and OpenBSD) -;listen.backlog = 511 - -; Set permissions for unix socket, if one is used. In Linux, read/write -; permissions must be set in order to allow connections from a web server. Many -; BSD-derived systems allow connections regardless of permissions. -; Default Values: user and group are set as the running user -; mode is set to 0660 -listen.owner = www-data -listen.group = www-data -;listen.mode = 0660 -; When POSIX Access Control Lists are supported you can set them using -; these options, value is a comma separated list of user/group names. -; When set, listen.owner and listen.group are ignored -;listen.acl_users = -;listen.acl_groups = - -; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address -; must be separated by a comma. If this value is left blank, connections will be -; accepted from any ip address. -; Default Value: any -;listen.allowed_clients = 127.0.0.1 - -; Specify the nice(2) priority to apply to the pool processes (only if set) -; The value can vary from -19 (highest priority) to 20 (lower priority) -; Note: - It will only work if the FPM master process is launched as root -; - The pool processes will inherit the master process priority -; unless it specified otherwise -; Default Value: no set -; process.priority = -19 - -; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user -; or group is differrent than the master process user. It allows to create process -; core dump and ptrace the process for the pool user. -; Default Value: no -; process.dumpable = yes - -; Choose how the process manager will control the number of child processes. -; Possible Values: -; static - a fixed number (pm.max_children) of child processes; -; dynamic - the number of child processes are set dynamically based on the -; following directives. With this process management, there will be -; always at least 1 children. -; pm.max_children - the maximum number of children that can -; be alive at the same time. -; pm.start_servers - the number of children created on startup. -; pm.min_spare_servers - the minimum number of children in 'idle' -; state (waiting to process). If the number -; of 'idle' processes is less than this -; number then some children will be created. -; pm.max_spare_servers - the maximum number of children in 'idle' -; state (waiting to process). If the number -; of 'idle' processes is greater than this -; number then some children will be killed. -; ondemand - no children are created at startup. Children will be forked when -; new requests will connect. The following parameter are used: -; pm.max_children - the maximum number of children that -; can be alive at the same time. -; pm.process_idle_timeout - The number of seconds after which -; an idle process will be killed. -; Note: This value is mandatory. -pm = dynamic - -; The number of child processes to be created when pm is set to 'static' and the -; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. -; This value sets the limit on the number of simultaneous requests that will be -; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. -; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP -; CGI. The below defaults are based on a server without much resources. Don't -; forget to tweak pm.* to fit your needs. -; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' -; Note: This value is mandatory. -pm.max_children = 5 - -; The number of child processes created on startup. -; Note: Used only when pm is set to 'dynamic' -; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 -pm.start_servers = 2 - -; The desired minimum number of idle server processes. -; Note: Used only when pm is set to 'dynamic' -; Note: Mandatory when pm is set to 'dynamic' -pm.min_spare_servers = 1 - -; The desired maximum number of idle server processes. -; Note: Used only when pm is set to 'dynamic' -; Note: Mandatory when pm is set to 'dynamic' -pm.max_spare_servers = 3 - -; The number of seconds after which an idle process will be killed. -; Note: Used only when pm is set to 'ondemand' -; Default Value: 10s -;pm.process_idle_timeout = 10s; - -; The number of requests each child process should execute before respawning. -; This can be useful to work around memory leaks in 3rd party libraries. For -; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. -; Default Value: 0 -;pm.max_requests = 500 - -; The URI to view the FPM status page. If this value is not set, no URI will be -; recognized as a status page. It shows the following informations: -; pool - the name of the pool; -; process manager - static, dynamic or ondemand; -; start time - the date and time FPM has started; -; start since - number of seconds since FPM has started; -; accepted conn - the number of request accepted by the pool; -; listen queue - the number of request in the queue of pending -; connections (see backlog in listen(2)); -; max listen queue - the maximum number of requests in the queue -; of pending connections since FPM has started; -; listen queue len - the size of the socket queue of pending connections; -; idle processes - the number of idle processes; -; active processes - the number of active processes; -; total processes - the number of idle + active processes; -; max active processes - the maximum number of active processes since FPM -; has started; -; max children reached - number of times, the process limit has been reached, -; when pm tries to start more children (works only for -; pm 'dynamic' and 'ondemand'); -; Value are updated in real time. -; Example output: -; pool: www -; process manager: static -; start time: 01/Jul/2011:17:53:49 +0200 -; start since: 62636 -; accepted conn: 190460 -; listen queue: 0 -; max listen queue: 1 -; listen queue len: 42 -; idle processes: 4 -; active processes: 11 -; total processes: 15 -; max active processes: 12 -; max children reached: 0 -; -; By default the status page output is formatted as text/plain. Passing either -; 'html', 'xml' or 'json' in the query string will return the corresponding -; output syntax. Example: -; http://www.foo.bar/status -; http://www.foo.bar/status?json -; http://www.foo.bar/status?html -; http://www.foo.bar/status?xml -; -; By default the status page only outputs short status. Passing 'full' in the -; query string will also return status for each pool process. -; Example: -; http://www.foo.bar/status?full -; http://www.foo.bar/status?json&full -; http://www.foo.bar/status?html&full -; http://www.foo.bar/status?xml&full -; The Full status returns for each process: -; pid - the PID of the process; -; state - the state of the process (Idle, Running, ...); -; start time - the date and time the process has started; -; start since - the number of seconds since the process has started; -; requests - the number of requests the process has served; -; request duration - the duration in µs of the requests; -; request method - the request method (GET, POST, ...); -; request URI - the request URI with the query string; -; content length - the content length of the request (only with POST); -; user - the user (PHP_AUTH_USER) (or '-' if not set); -; script - the main script called (or '-' if not set); -; last request cpu - the %cpu the last request consumed -; it's always 0 if the process is not in Idle state -; because CPU calculation is done when the request -; processing has terminated; -; last request memory - the max amount of memory the last request consumed -; it's always 0 if the process is not in Idle state -; because memory calculation is done when the request -; processing has terminated; -; If the process is in Idle state, then informations are related to the -; last request the process has served. Otherwise informations are related to -; the current request being served. -; Example output: -; ************************ -; pid: 31330 -; state: Running -; start time: 01/Jul/2011:17:53:49 +0200 -; start since: 63087 -; requests: 12808 -; request duration: 1250261 -; request method: GET -; request URI: /test_mem.php?N=10000 -; content length: 0 -; user: - -; script: /home/fat/web/docs/php/test_mem.php -; last request cpu: 0.00 -; last request memory: 0 -; -; Note: There is a real-time FPM status monitoring sample web page available -; It's available in: /usr/share/php/7.0/fpm/status.html -; -; Note: The value must start with a leading slash (/). The value can be -; anything, but it may not be a good idea to use the .php extension or it -; may conflict with a real PHP file. -; Default Value: not set -;pm.status_path = /status - -; The ping URI to call the monitoring page of FPM. If this value is not set, no -; URI will be recognized as a ping page. This could be used to test from outside -; that FPM is alive and responding, or to -; - create a graph of FPM availability (rrd or such); -; - remove a server from a group if it is not responding (load balancing); -; - trigger alerts for the operating team (24/7). -; Note: The value must start with a leading slash (/). The value can be -; anything, but it may not be a good idea to use the .php extension or it -; may conflict with a real PHP file. -; Default Value: not set -;ping.path = /ping - -; This directive may be used to customize the response of a ping request. The -; response is formatted as text/plain with a 200 response code. -; Default Value: pong -;ping.response = pong - -; The access log file -; Default: not set -;access.log = log/$pool.access.log - -; The access log format. -; The following syntax is allowed -; %%: the '%' character -; %C: %CPU used by the request -; it can accept the following format: -; - %{user}C for user CPU only -; - %{system}C for system CPU only -; - %{total}C for user + system CPU (default) -; %d: time taken to serve the request -; it can accept the following format: -; - %{seconds}d (default) -; - %{miliseconds}d -; - %{mili}d -; - %{microseconds}d -; - %{micro}d -; %e: an environment variable (same as $_ENV or $_SERVER) -; it must be associated with embraces to specify the name of the env -; variable. Some exemples: -; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e -; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e -; %f: script filename -; %l: content-length of the request (for POST request only) -; %m: request method -; %M: peak of memory allocated by PHP -; it can accept the following format: -; - %{bytes}M (default) -; - %{kilobytes}M -; - %{kilo}M -; - %{megabytes}M -; - %{mega}M -; %n: pool name -; %o: output header -; it must be associated with embraces to specify the name of the header: -; - %{Content-Type}o -; - %{X-Powered-By}o -; - %{Transfert-Encoding}o -; - .... -; %p: PID of the child that serviced the request -; %P: PID of the parent of the child that serviced the request -; %q: the query string -; %Q: the '?' character if query string exists -; %r: the request URI (without the query string, see %q and %Q) -; %R: remote IP address -; %s: status (response code) -; %t: server time the request was received -; it can accept a strftime(3) format: -; %d/%b/%Y:%H:%M:%S %z (default) -; The strftime(3) format must be encapsuled in a %{}t tag -; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t -; %T: time the log has been written (the request has finished) -; it can accept a strftime(3) format: -; %d/%b/%Y:%H:%M:%S %z (default) -; The strftime(3) format must be encapsuled in a %{}t tag -; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t -; %u: remote user -; -; Default: "%R - %u %t \"%m %r\" %s" -;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" - -; The log file for slow requests -; Default Value: not set -; Note: slowlog is mandatory if request_slowlog_timeout is set -;slowlog = log/$pool.log.slow - -; The timeout for serving a single request after which a PHP backtrace will be -; dumped to the 'slowlog' file. A value of '0s' means 'off'. -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) -; Default Value: 0 -;request_slowlog_timeout = 0 - -; The timeout for serving a single request after which the worker process will -; be killed. This option should be used when the 'max_execution_time' ini option -; does not stop script execution for some reason. A value of '0' means 'off'. -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) -; Default Value: 0 -request_terminate_timeout = 1d - -; Set open file descriptor rlimit. -; Default Value: system defined value -;rlimit_files = 1024 - -; Set max core size rlimit. -; Possible Values: 'unlimited' or an integer greater or equal to 0 -; Default Value: system defined value -;rlimit_core = 0 - -; Chroot to this directory at the start. This value must be defined as an -; absolute path. When this value is not set, chroot is not used. -; Note: you can prefix with '$prefix' to chroot to the pool prefix or one -; of its subdirectories. If the pool prefix is not set, the global prefix -; will be used instead. -; Note: chrooting is a great security feature and should be used whenever -; possible. However, all PHP paths will be relative to the chroot -; (error_log, sessions.save_path, ...). -; Default Value: not set -;chroot = - -; Chdir to this directory at the start. -; Note: relative path can be used. -; Default Value: current directory or / when chroot -chdir = __FINALPATH__/public - -; Redirect worker stdout and stderr into main error log. If not set, stdout and -; stderr will be redirected to /dev/null according to FastCGI specs. -; Note: on highloaded environement, this can cause some delay in the page -; process time (several ms). -; Default Value: no -;catch_workers_output = yes - -; Clear environment in FPM workers -; Prevents arbitrary environment variables from reaching FPM worker processes -; by clearing the environment in workers before env vars specified in this -; pool configuration are added. -; Setting to "no" will make all environment variables available to PHP code -; via getenv(), $_ENV and $_SERVER. -; Default Value: yes -;clear_env = no - -; Limits the extensions of the main script FPM will allow to parse. This can -; prevent configuration mistakes on the web server side. You should only limit -; FPM to .php extensions to prevent malicious users to use other extensions to -; execute php code. -; Note: set an empty value to allow all extensions. -; Default Value: .php -;security.limit_extensions = .php .php3 .php4 .php5 .php7 - -; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from -; the current environment. -; Default Value: clean env -;env[HOSTNAME] = $HOSTNAME -;env[PATH] = /usr/local/bin:/usr/bin:/bin -;env[TMP] = /tmp -;env[TMPDIR] = /tmp -;env[TEMP] = /tmp - -; Additional php.ini defines, specific to this pool of workers. These settings -; overwrite the values previously defined in the php.ini. The directives are the -; same as the PHP SAPI: -; php_value/php_flag - you can set classic ini defines which can -; be overwritten from PHP call 'ini_set'. -; php_admin_value/php_admin_flag - these directives won't be overwritten by -; PHP call 'ini_set' -; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. - -; Defining 'extension' will load the corresponding shared extension from -; extension_dir. Defining 'disable_functions' or 'disable_classes' will not -; overwrite previously defined php.ini values, but will append the new value -; instead. - -; Note: path INI options can be relative and will be expanded with the prefix -; (pool, global or /usr) - -; Default Value: nothing is defined by default except the values in php.ini and -; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -;php_flag[display_errors] = off -;php_admin_value[error_log] = /var/log/fpm-php.www.log -;php_admin_flag[log_errors] = on -;php_admin_value[memory_limit] = 32M - -; Common values to change to increase file upload limit -; php_admin_value[upload_max_filesize] = 50M -; php_admin_value[post_max_size] = 50M -; php_admin_flag[mail.add_x_header] = Off - -; Other common parameters -; php_admin_value[max_execution_time] = 600 -; php_admin_value[max_input_time] = 300 -; php_admin_value[memory_limit] = 256M -; php_admin_flag[short_open_tag] = On diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 374be92..858f1a1 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1 +1 @@ -[Cachet](https://cachethq.io/) is a free, open source status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. +Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md deleted file mode 100644 index c763754..0000000 --- a/doc/DISCLAIMER.md +++ /dev/null @@ -1,8 +0,0 @@ -## Configuration - -Totally configurable through the Cachet application dashboard. - -## Limitations - -- Must necessarily be installed on domain root (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/1696)) -- Can't integrate with YunoHost SSO as LDAP support is not implemented yet (see upstream issue [here](https://github.com/CachetHQ/Cachet/issues/2108)) diff --git a/manifest.json b/manifest.json deleted file mode 100644 index 18db016..0000000 --- a/manifest.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "Cachet", - "id": "cachet", - "packaging_format": 1, - "description": { - "en": "Open source status page system", - "fr": "Système de page de statut open source" - }, - "version": "2.4.0~ynh5", - "url": "https://cachethq.io", - "upstream": { - "license": "BSD-3-Clause", - "website": "https://cachethq.io", - "demo": "https://demo.cachethq.io", - "admindoc": "https://docs.cachethq.io", - "code": "https://github.com/CachetHQ/Cachet" - }, - "license": "BSD-3-Clause", - "maintainer": { - "name": "JimboJoe", - "email": "jimmy@monin.net" - }, - "requirements": { - "yunohost": ">= 4.3.0" - }, - "multi_instance": true, - "services": [ - "nginx", - "php7.3-fpm", - "mysql" - ], - "arguments": { - "install": [ - { - "name": "domain", - "type": "domain" - }, - { - "name": "is_public", - "type": "boolean", - "default": true - }, - { - "name": "language", - "type": "string", - "ask": { - "en": "Choose the application language", - "fr": "Choisissez la langue de l'application" - }, - "choices": ["fr", "en"], - "default": "en" - }, - { - "name": "admin", - "type": "user" - }, - { - "name": "password", - "type": "password", - "optional": true, - "ask": { - "en": "Set the password for admin user", - "fr": "Définissez le mot de passe pour l'utilisateur" - } - } - ] - } -} diff --git a/manifest.toml b/manifest.toml new file mode 100644 index 0000000..7184d4b --- /dev/null +++ b/manifest.toml @@ -0,0 +1,68 @@ +packaging_format = 2 + +id = "cachet" +name = "Cachet" +description.en = "Open source status page system" +description.fr = "Système de page de statut open source" + +version = "2.4.0~ynh5" + +maintainers = ["JimboJoe"] + +[upstream] +license = "BSD-3-Clause" +website = "https://cachethq.io" +demo = "https://demo.cachethq.io" +admindoc = "https://docs.cachethq.io" +code = "https://github.com/CachetHQ/Cachet" + +[integration] +yunohost = ">= 11.1.21" +architectures = "all" +multi_instance = true +ldap = false +sso = false +disk = "50M" +ram.build = "50M" +ram.runtime = "50M" + +[install] + [install.domain] + type = "domain" + full_domain = true + + [install.init_main_permission] + type = "group" + default = "visitors" + + [install.language] + ask.en = "Choose the application language" + ask.fr = "Choisissez la langue de l'application" + type = "string" + choices = ["fr", "en"] + default = "en" + + [install.admin] + type = "user" + + [install.password] + type = "password" + optional = true + +[resources] + [resources.sources.main] + url = "https://github.com/CachetHQ/Cachet/archive/cf86f65f1dabf283d001d0f5d380f26dd5cfb64c.tar.gz" + sha256 = "be48fdeacc093c9e688ecd9cef61e0304a856fcd6281066552bfecd8355fa35e" + + [resources.system_user] + + [resources.install_dir] + + [resources.permissions] + main.url = "/" + + [resources.apt] + packages = "mariadb-server php7.4-gd php7.4-mbstring php7.4-xml php7.4-mysql php7.4-sqlite3" + + [resources.database] + type = "mysql" diff --git a/scripts/_common.sh b/scripts/_common.sh index ff8aedb..a6dbc66 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,17 +4,13 @@ # COMMON VARIABLES #================================================= -YNH_PHP_VERSION="7.3" - -pkg_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-sqlite3" - #================================================= # PERSONAL HELPERS #================================================= # Execute a command with occ exec_artisan() { - (cd "$final_path" && + (cd "$install_dir" && php$YNH_PHP_VERSION artisan $@ --quiet --no-interaction) } diff --git a/scripts/backup b/scripts/backup index 86cad22..214b288 100644 --- a/scripts/backup +++ b/scripts/backup @@ -10,28 +10,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - true -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_print_info --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - -final_path=$(ynh_app_setting_get --app=$app --key=final_path) -domain=$(ynh_app_setting_get --app=$app --key=domain) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) - #================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= @@ -41,7 +19,7 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup --src_path="$final_path" +ynh_backup --src_path="$install_dir" #================================================= # BACKUP THE NGINX CONFIGURATION diff --git a/scripts/change_url b/scripts/change_url index c2d713a..9179462 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -9,64 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# RETRIEVE ARGUMENTS -#================================================= - -old_domain=$YNH_APP_OLD_DOMAIN -old_path=$YNH_APP_OLD_PATH - -new_domain=$YNH_APP_NEW_DOMAIN -new_path="/" - -app=$YNH_APP_INSTANCE_NAME - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." --weight=1 - -# Needed for helper "ynh_add_nginx_config" -final_path=$(ynh_app_setting_get --app=$app --key=final_path) - -# Add settings here as needed by your application -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_user=$db_name -db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) - -#================================================= -# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --weight=12 - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - # Remove the new domain config file, the remove script won't do it as it doesn't know yet its location. - ynh_secure_remove --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" - - # Restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# CHECK WHICH PARTS SHOULD BE CHANGED -#================================================= - -change_domain=0 -if [ "$old_domain" != "$new_domain" ] -then - change_domain=1 -fi - -change_path=0 -if [ "$old_path" != "$new_path" ] -then - change_path=1 -fi - #================================================= # STANDARD MODIFICATIONS #================================================= @@ -74,29 +16,7 @@ fi #================================================= ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2 -nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf - -# Change the path in the NGINX config file -if [ $change_path -eq 1 ] -then - # Make a backup of the original NGINX config file if modified - ynh_backup_if_checksum_is_different --file="$nginx_conf_path" - # Set global variables for NGINX helper - domain="$old_domain" - path_url="$new_path" - # Create a dedicated NGINX config - ynh_add_nginx_config -fi - -# Change the domain for NGINX -if [ $change_domain -eq 1 ] -then - # Delete file checksum for the old conf file location - ynh_delete_file_checksum --file="$nginx_conf_path" - mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf - # Store file checksum for the new config file location - ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" -fi +ynh_change_url_nginx_config #================================================= # SPECIFIC MODIFICATIONS @@ -105,28 +25,19 @@ fi #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_backup_if_checksum_is_different --file="$final_path/.env" -ynh_backup_if_checksum_is_different --file="$final_path/bootstrap/cachet/production.php" +ynh_backup_if_checksum_is_different --file="$install_dir/.env" +ynh_backup_if_checksum_is_different --file="$install_dir/bootstrap/cachet/production.php" # Replace domain in Cachet configuration files -ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$final_path/.env" -ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$final_path/bootstrap/cachet/production.php" +ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$install_dir/.env" +ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$install_dir/bootstrap/cachet/production.php" -ynh_store_file_checksum --file="$final_path/.env" -ynh_store_file_checksum --file="$final_path/bootstrap/cachet/production.php" +ynh_store_file_checksum --file="$install_dir/.env" +ynh_store_file_checksum --file="$install_dir/bootstrap/cachet/production.php" # Replace domain in Cachet database settings ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE settings SET value = 'https://$new_domain' WHERE name = 'app_domain'" -#================================================= -# GENERIC FINALISATION -#================================================= -# RELOAD NGINX -#================================================= -ynh_script_progression --message="Reloading NGINX web server..." --weight=1 - -ynh_systemd_action --service_name=nginx --action=reload - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/install b/scripts/install index 83f99d4..794c0e2 100644 --- a/scripts/install +++ b/scripts/install @@ -9,91 +9,22 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - true -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= -domain=$YNH_APP_ARG_DOMAIN -path_url="/" -is_public=$YNH_APP_ARG_IS_PUBLIC -language=$YNH_APP_ARG_LANGUAGE -admin=$YNH_APP_ARG_ADMIN -password=$YNH_APP_ARG_PASSWORD admin_mail="$(ynh_user_get_info --username=$admin --key=mail)" -app=$YNH_APP_INSTANCE_NAME - -#================================================= -# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS -#================================================= -ynh_script_progression --message="Validating installation parameters..." --weight=1 - -final_path=/var/www/$app -test ! -e "$final_path" || ynh_die --message="This path already contains a folder" - -# Register (book) web path -ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url - -#================================================= -# STORE SETTINGS FROM MANIFEST -#================================================= -ynh_script_progression --message="Storing installation settings..." --weight=1 - -ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=language --value=$language -ynh_app_setting_set --app=$app --key=admin --value=$admin -ynh_app_setting_set --app=$app --key=password --value=$password - -#================================================= -# STANDARD MODIFICATIONS -#================================================= -# INSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Installing dependencies..." - -ynh_install_app_dependencies $pkg_dependencies - -#================================================= -# CREATE DEDICATED USER -#================================================= -ynh_script_progression --message="Configuring system user..." --weight=2 - -# Create a system user -ynh_system_user_create --username=$app --home_dir="$final_path" - -#================================================= -# CREATE A MYSQL DATABASE -#================================================= -ynh_script_progression --message="Creating a MySQL database..." --weight=1 - -db_name=$(ynh_sanitize_dbid --db_name=$app) -db_user=$db_name -ynh_app_setting_set --app=$app --key=db_name --value=$db_name -ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= ynh_script_progression --message="Setting up source files..." --weight=5 -ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$final_path" +ynh_setup_source --dest_dir="$install_dir" -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # NGINX CONFIGURATION @@ -103,13 +34,8 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring PHP-FPM..." --weight=8 - # Create a dedicated PHP-FPM config -ynh_add_fpm_config +ynh_add_fpm_config --usage=low --footprint=low #================================================= # SPECIFIC SETUP @@ -118,7 +44,7 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Pre-configuring Cachet..." --weight=10 -ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" +ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env" #================================================= # INSTALL AND INITIALIZE COMPOSER @@ -132,7 +58,7 @@ ynh_install_composer --install_args="--optimize-autoloader" #================================================= ynh_script_progression --message="Installing Cachet..." -mkdir -p "$final_path/storage/app/public" +mkdir -p "$install_dir/storage/app/public" exec_artisan "key:generate" exec_artisan "cachet:install" @@ -141,49 +67,27 @@ exec_artisan "cachet:install" #================================================= ynh_script_progression --message="Finalizing Cachet configuration..." -password_hash="$(cd $final_path ; php$YNH_PHP_VERSION artisan tinker -q --no-ansi <<< "echo Hash::make('$password');" |head -n 1)" +password_hash="$(cd $install_dir ; php$YNH_PHP_VERSION artisan tinker -q --no-ansi <<< "echo Hash::make('$password');" |head -n 1)" password_pash="${password_hash::-1}" # Remove last character # Populate MySQL database -ynh_add_config --template="../conf/init-mysql.sql" --destination="$final_path/init-mysql.sql" -ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < "$final_path/init-mysql.sql" -ynh_delete_file_checksum --file="$final_path/init-mysql.sql" -ynh_secure_remove --file="$final_path/init-mysql.sql" +ynh_add_config --template="../conf/init-mysql.sql" --destination="$install_dir/init-mysql.sql" +ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < "$install_dir/init-mysql.sql" +ynh_delete_file_checksum --file="$install_dir/init-mysql.sql" +#REMOVEME? ynh_secure_remove --file="$install_dir/init-mysql.sql" -ynh_add_config --template="../conf/production.php" --destination="$final_path/bootstrap/cachet/production.php" -chown $app: $final_path/bootstrap/cachet/production.php +ynh_add_config --template="../conf/production.php" --destination="$install_dir/bootstrap/cachet/production.php" +chown $app: $install_dir/bootstrap/cachet/production.php #================================================= # SECURE FILES AND DIRECTORIES #================================================= # Set permissions to app files -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" -chown -R $app: "${final_path}/.env" "${final_path}/storage/" "${final_path}/bootstrap/" - -#================================================= -# GENERIC FINALIZATION -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Configuring permissions..." --weight=2 - -# Make app public if necessary -if [ $is_public -eq 1 ] -then - # Everyone can access the app. - # The "main" permission is automatically created before the install script. - ynh_permission_update --permission="main" --add="visitors" -fi - -#================================================= -# RELOAD NGINX -#================================================= -ynh_script_progression --message="Reloading NGINX web server..." --weight=1 - -ynh_systemd_action --service_name=nginx --action=reload +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" +chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" #================================================= # END OF SCRIPT diff --git a/scripts/remove b/scripts/remove index af368d7..79cb058 100644 --- a/scripts/remove +++ b/scripts/remove @@ -9,37 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." --weight=1 - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) -port=$(ynh_app_setting_get --app=$app --key=port) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_user=$db_name -final_path=$(ynh_app_setting_get --app=$app --key=final_path) - -#================================================= -# STANDARD REMOVE -#================================================= -# REMOVE THE MYSQL DATABASE -#================================================= -ynh_script_progression --message="Removing the MySQL database..." --weight=2 - -# Remove a database if it exists, along with the associated user -ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name - -#================================================= -# REMOVE APP MAIN DIR -#================================================= -ynh_script_progression --message="Removing app main directory..." --weight=1 - -# Remove the app directory securely -ynh_secure_remove --file="$final_path" - #================================================= # REMOVE NGINX CONFIGURATION #================================================= @@ -56,24 +25,6 @@ ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=1 # Remove the dedicated PHP-FPM config ynh_remove_fpm_config -#================================================= -# REMOVE DEPENDENCIES -#================================================= -ynh_script_progression --message="Removing dependencies..." --weight=4 - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - -#================================================= -# GENERIC FINALIZATION -#================================================= -# REMOVE DEDICATED USER -#================================================= -ynh_script_progression --message="Removing the dedicated system user..." --weight=1 - -# Delete a system user -ynh_system_user_delete --username=$app - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index a8ec796..4f759c5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -10,76 +10,17 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - true -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." --weight=1 - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) -path_url=$(ynh_app_setting_get --app=$app --key=path) -final_path=$(ynh_app_setting_get --app=$app --key=final_path) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_user=$db_name -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) - -#================================================= -# CHECK IF THE APP CAN BE RESTORED -#================================================= -ynh_script_progression --message="Validating restoration parameters..." --weight=1 - -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " - -#================================================= -# STANDARD RESTORATION STEPS -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - -#================================================= -# RECREATE THE DEDICATED USER -#================================================= -ynh_script_progression --message="Recreating the dedicated system user..." --weight=3 - -# Create the dedicated user (if not existing) -ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= # RESTORE THE APP MAIN DIR #================================================= ynh_script_progression --message="Restoring the app main directory..." --weight=1 -ynh_restore_file --origin_path="$final_path" +ynh_restore_file --origin_path="$install_dir" -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" -chown -R $app: "${final_path}/.env" "${final_path}/storage/" "${final_path}/bootstrap/" - -#================================================= -# SPECIFIC RESTORATION -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." - -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" +chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" #================================================= # RESTORE THE PHP-FPM CONFIGURATION @@ -88,13 +29,13 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + #================================================= # RESTORE THE MYSQL DATABASE #================================================= ynh_script_progression --message="Restoring the MySQL database..." --weight=2 -db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) -ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 335cdcd..68e2e42 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,70 +9,19 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." --weight=1 - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) -path_url=$(ynh_app_setting_get --app=$app --key=path) -language=$(ynh_app_setting_get --app=$app --key=language) -admin=$(ynh_app_setting_get --app=$app --key=admin) -final_path=$(ynh_app_setting_get --app=$app --key=final_path) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) - #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=4 - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - # Restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # SET MAINTENANCE MODE ON #================================================= -# We need to have the required version of PHP, hence PHP-FPM block is executed beforehand +# We need to have the required version of PHP, hence PHP-FPM block is executed beforehand exec_artisan "down" -#================================================= -# STANDARD UPGRADE STEPS -#================================================= -# ENSURE DOWNWARD COMPATIBILITY -#================================================= -ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 - -# Cleaning legacy permissions -if ynh_legacy_permissions_exists; then - ynh_legacy_permissions_delete_all - - ynh_app_setting_delete --app=$app --key=is_public -fi - -#================================================= -# CREATE DEDICATED USER -#================================================= -ynh_script_progression --message="Making sure dedicated system user exists..." --weight=1 - -# Create a dedicated user (if not existing) -ynh_system_user_create --username=$app --home_dir="$final_path" - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -82,13 +31,12 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep=".env bootstrap/cachet/production.php" + ynh_setup_source --dest_dir="$install_dir" --keep=".env bootstrap/cachet/production.php" fi -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" -chown -R $app: "${final_path}/.env" "${final_path}/storage/" "${final_path}/bootstrap/" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" +chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" #================================================= # NGINX CONFIGURATION @@ -98,20 +46,13 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." - -ynh_install_app_dependencies $pkg_dependencies - #================================================= # PHP-FPM CONFIGURATION #================================================= ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config -ynh_add_fpm_config +ynh_add_fpm_config --usage=low --footprint=low #================================================= # SPECIFIC UPGRADE @@ -134,10 +75,10 @@ ynh_secure_remove --file=bootstrap/cache/* #================================================= # Set permissions to app files -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" -chown -R $app: "${final_path}/.env" "${final_path}/storage/" "${final_path}/bootstrap/" +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" +chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" #================================================= # SET MAINTENANCE MODE OFF @@ -145,15 +86,6 @@ chown -R $app: "${final_path}/.env" "${final_path}/storage/" "${final_path}/boot exec_artisan "up" -#================================================= -# GENERIC FINALIZATION -#================================================= -# RELOAD NGINX -#================================================= -ynh_script_progression --message="Reloading NGINX web server..." --weight=1 - -ynh_systemd_action --service_name=nginx --action=reload - #================================================= # END OF SCRIPT #================================================= diff --git a/tests.toml b/tests.toml new file mode 100644 index 0000000..9754654 --- /dev/null +++ b/tests.toml @@ -0,0 +1,9 @@ +test_format = 1.0 + +[default] + + # ------------------------------- + # Commits to test upgrade from + # ------------------------------- + + test_upgrade_from.6fcddf81286fb845735978ed832c9273c3b783ce.name = "Upgrade from 2.4.0~ynh4" \ No newline at end of file From bf37367cbf26cbbfdb774bdb31a86b7d03a71ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:40:18 +0200 Subject: [PATCH 02/30] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a6dbc66..578215c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,7 +11,7 @@ # Execute a command with occ exec_artisan() { (cd "$install_dir" && - php$YNH_PHP_VERSION artisan $@ --quiet --no-interaction) + php$phpversion artisan $@ --quiet --no-interaction) } #================================================= From bc01f57c6fd9f8318353ccb5658acbae15b1c7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:40:25 +0200 Subject: [PATCH 03/30] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 7184d4b..7e3057e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2.4.0~ynh5" +version = "2.4.0~ynh6" maintainers = ["JimboJoe"] From 68331152a585582331a766a26952b16b3b71bf9e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 21 Jun 2023 15:40:30 +0000 Subject: [PATCH 04/30] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cf685c..98d36e9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2.4.0~ynh5 +**Shipped version:** 2.4.0~ynh6 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index ac8d140..17f8eef 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2.4.0~ynh5 +**Version incluse :** 2.4.0~ynh6 **Démo :** https://demo.cachethq.io From 988e487b8f3a9e7a21e5b778ff5ec8df7b8a33b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:15:05 +0200 Subject: [PATCH 05/30] Update manifest.toml --- manifest.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifest.toml b/manifest.toml index 7e3057e..5bd5670 100644 --- a/manifest.toml +++ b/manifest.toml @@ -53,6 +53,8 @@ ram.runtime = "50M" [resources.sources.main] url = "https://github.com/CachetHQ/Cachet/archive/cf86f65f1dabf283d001d0f5d380f26dd5cfb64c.tar.gz" sha256 = "be48fdeacc093c9e688ecd9cef61e0304a856fcd6281066552bfecd8355fa35e" + autoupdate.upstream = "https://github.com/CachetHQ/Cachet" + autoupdate.strategy = "latest_github_commit" [resources.system_user] From f612dc2c40a1c89c5712b914531c3ad7fb2759d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 27 Jul 2023 08:30:52 +0100 Subject: [PATCH 06/30] Update manifest.toml Co-authored-by: Alexandre Aubin --- manifest.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 5bd5670..42aa183 100644 --- a/manifest.toml +++ b/manifest.toml @@ -53,7 +53,6 @@ ram.runtime = "50M" [resources.sources.main] url = "https://github.com/CachetHQ/Cachet/archive/cf86f65f1dabf283d001d0f5d380f26dd5cfb64c.tar.gz" sha256 = "be48fdeacc093c9e688ecd9cef61e0304a856fcd6281066552bfecd8355fa35e" - autoupdate.upstream = "https://github.com/CachetHQ/Cachet" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 9b3e34c160e25c034e429738e70426c51ee6e64d Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Sun, 13 Aug 2023 22:35:13 +0200 Subject: [PATCH 07/30] Upgrade to v2023.08.13 (#37) * Upgrade to v2023.08.13 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 98d36e9..36478bf 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2.4.0~ynh6 +**Shipped version:** 2023.08.13~ynh6 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 17f8eef..d10a18b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2.4.0~ynh6 +**Version incluse :** 2023.08.13~ynh6 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 42aa183..2de0526 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2.4.0~ynh6" +version = "2023.08.13~ynh6" maintainers = ["JimboJoe"] @@ -51,8 +51,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/cf86f65f1dabf283d001d0f5d380f26dd5cfb64c.tar.gz" - sha256 = "be48fdeacc093c9e688ecd9cef61e0304a856fcd6281066552bfecd8355fa35e" + url = "https://github.com/CachetHQ/Cachet/archive/c79a66a08dbcdd89fbb5cf9bd332eb0db19629f6.tar.gz" + sha256 = "4474682f7e973fab428c5ec155d05fcc6f4e0f726668365bf4d9302185ac97ee" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 612d60f007e79c41587b1d8dd2ee5b97dce70880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 13 Aug 2023 22:53:36 +0200 Subject: [PATCH 08/30] Update manifest.toml --- manifest.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 2de0526..a83012c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -29,7 +29,6 @@ ram.runtime = "50M" [install] [install.domain] type = "domain" - full_domain = true [install.init_main_permission] type = "group" @@ -38,7 +37,7 @@ ram.runtime = "50M" [install.language] ask.en = "Choose the application language" ask.fr = "Choisissez la langue de l'application" - type = "string" + type = "select" choices = ["fr", "en"] default = "en" @@ -52,7 +51,7 @@ ram.runtime = "50M" [resources] [resources.sources.main] url = "https://github.com/CachetHQ/Cachet/archive/c79a66a08dbcdd89fbb5cf9bd332eb0db19629f6.tar.gz" - sha256 = "4474682f7e973fab428c5ec155d05fcc6f4e0f726668365bf4d9302185ac97ee" + sha256 = "a63554a9170e8c73f91a73288bc419705a8651982ad34af4a96208a6c861c729" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 3b9042ec109e1e36a426ea9d8f22c20b4469a89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 13 Aug 2023 23:20:32 +0200 Subject: [PATCH 09/30] Update tests.toml --- tests.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.toml b/tests.toml index 9754654..35c0769 100644 --- a/tests.toml +++ b/tests.toml @@ -6,4 +6,4 @@ test_format = 1.0 # Commits to test upgrade from # ------------------------------- - test_upgrade_from.6fcddf81286fb845735978ed832c9273c3b783ce.name = "Upgrade from 2.4.0~ynh4" \ No newline at end of file + #test_upgrade_from.6fcddf81286fb845735978ed832c9273c3b783ce.name = "Upgrade from 2.4.0~ynh4" \ No newline at end of file From d5d2239974fb324757c81b227294c3d39ed7f38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 13 Aug 2023 23:21:30 +0200 Subject: [PATCH 10/30] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index a83012c..c2308ab 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.13~ynh6" +version = "2023.08.13~ynh1" maintainers = ["JimboJoe"] From 4402fa2e9fb16bb4bea352d407a28ee3c11084a7 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 13 Aug 2023 21:21:35 +0000 Subject: [PATCH 11/30] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36478bf..666059c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.13~ynh6 +**Shipped version:** 2023.08.13~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index d10a18b..7427a86 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.13~ynh6 +**Version incluse :** 2023.08.13~ynh1 **Démo :** https://demo.cachethq.io From 8db253338af248483ebe6581a13b99cbb26dba36 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Thu, 17 Aug 2023 21:12:18 +0200 Subject: [PATCH 12/30] Upgrade to v2023.08.17 (#39) * Upgrade to v2023.08.17 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 666059c..075d536 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.13~ynh1 +**Shipped version:** 2023.08.17~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 7427a86..94e988e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.13~ynh1 +**Version incluse :** 2023.08.17~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index c2308ab..3dc5140 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.13~ynh1" +version = "2023.08.17~ynh1" maintainers = ["JimboJoe"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/c79a66a08dbcdd89fbb5cf9bd332eb0db19629f6.tar.gz" - sha256 = "a63554a9170e8c73f91a73288bc419705a8651982ad34af4a96208a6c861c729" + url = "https://github.com/CachetHQ/Cachet/archive/3d52771a1e66ebdf818d65c21f7221315c25da23.tar.gz" + sha256 = "dfe20b569d5be720cf67898ea029e21e813a0e0d9b38879d202936724ea8b30c" autoupdate.strategy = "latest_github_commit" [resources.system_user] From e77368609ce10bd681eb304d1004932501da7abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:47:53 +0200 Subject: [PATCH 13/30] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 3dc5140..d1792ad 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ admindoc = "https://docs.cachethq.io" code = "https://github.com/CachetHQ/Cachet" [integration] -yunohost = ">= 11.1.21" +yunohost = ">= 11.2" architectures = "all" multi_instance = true ldap = false From 433a4dd510d30daba4927c9308f895fde4b985ed Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Sun, 20 Aug 2023 07:32:42 +0200 Subject: [PATCH 14/30] Upgrade to v2023.08.19 (#41) * Upgrade to v2023.08.19 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 075d536..eb90aef 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.17~ynh1 +**Shipped version:** 2023.08.19~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 94e988e..5298446 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.17~ynh1 +**Version incluse :** 2023.08.19~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index d1792ad..963be90 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.17~ynh1" +version = "2023.08.19~ynh1" maintainers = ["JimboJoe"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/3d52771a1e66ebdf818d65c21f7221315c25da23.tar.gz" - sha256 = "dfe20b569d5be720cf67898ea029e21e813a0e0d9b38879d202936724ea8b30c" + url = "https://github.com/CachetHQ/Cachet/archive/0611cad202406992701b6ce1ca5f24f5d527d98e.tar.gz" + sha256 = "de2feff5010da849175672a7d847ea9b6d77139f6b103ad16b8cc5e0c476234c" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 67d64214c45ce7b462e40f0519c5e9fe967ae479 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Mon, 21 Aug 2023 21:12:16 +0200 Subject: [PATCH 15/30] Upgrade to v2023.08.21 (#42) * Upgrade to v2023.08.21 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eb90aef..bf16d14 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.19~ynh1 +**Shipped version:** 2023.08.21~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 5298446..91f87c3 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.19~ynh1 +**Version incluse :** 2023.08.21~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 963be90..128332d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.19~ynh1" +version = "2023.08.21~ynh1" maintainers = ["JimboJoe"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/0611cad202406992701b6ce1ca5f24f5d527d98e.tar.gz" - sha256 = "de2feff5010da849175672a7d847ea9b6d77139f6b103ad16b8cc5e0c476234c" + url = "https://github.com/CachetHQ/Cachet/archive/0675337812f979613ac7b314c98a01a95e01eb2a.tar.gz" + sha256 = "aa12ed51839d86de43c2f98c7f5cc6eb666b1156ef5dbab82a274667861705c4" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 35dac4b1b37494c416d3f4fa714d877406296b94 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Thu, 24 Aug 2023 23:29:02 +0200 Subject: [PATCH 16/30] Upgrade to v2023.08.24 (#43) * Upgrade to v2023.08.24 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bf16d14..3acba09 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.21~ynh1 +**Shipped version:** 2023.08.24~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 91f87c3..4712b82 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.21~ynh1 +**Version incluse :** 2023.08.24~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 128332d..946c14c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.21~ynh1" +version = "2023.08.24~ynh1" maintainers = ["JimboJoe"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/0675337812f979613ac7b314c98a01a95e01eb2a.tar.gz" - sha256 = "aa12ed51839d86de43c2f98c7f5cc6eb666b1156ef5dbab82a274667861705c4" + url = "https://github.com/CachetHQ/Cachet/archive/f40da226670a92934170c1adcfff3d1c40a6096b.tar.gz" + sha256 = "65bc27e040d963fdeea20f48bbe086f05598fdb9b8934916b6bf47a28a3d2dd8" autoupdate.strategy = "latest_github_commit" [resources.system_user] From fc21f1d759044c7c592effb9b43c3b003141ce61 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Tue, 5 Sep 2023 20:59:14 +0200 Subject: [PATCH 17/30] Upgrade to v2023.09.05 (#45) * Upgrade to v2023.09.05 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3acba09..22c0c16 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.08.24~ynh1 +**Shipped version:** 2023.09.05~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 4712b82..4b82923 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Version incluse :** 2023.08.24~ynh1 +**Version incluse :** 2023.09.05~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 946c14c..be45f4b 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.08.24~ynh1" +version = "2023.09.05~ynh1" maintainers = ["JimboJoe"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/f40da226670a92934170c1adcfff3d1c40a6096b.tar.gz" - sha256 = "65bc27e040d963fdeea20f48bbe086f05598fdb9b8934916b6bf47a28a3d2dd8" + url = "https://github.com/CachetHQ/Cachet/archive/2323e9c0e36100f561ba03f029d87e2543636e81.tar.gz" + sha256 = "a3e26b429e3121e728447fd26d060321b695c56aeac3fc13eb0a79d4d80c217e" autoupdate.strategy = "latest_github_commit" [resources.system_user] From a951ee91d321e3ee118f0019c1bd5e14fec1d39a Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:07:00 +0200 Subject: [PATCH 18/30] Cleaning (#49) * cleaning * Auto-update README * cleaning * Auto-update README --------- Co-authored-by: yunohost-bot --- README_fr.md | 3 +-- doc/DESCRIPTION_fr.md | 1 + scripts/install | 6 +++--- scripts/remove | 9 ++------- scripts/restore | 21 +++++++++++---------- scripts/upgrade | 11 +++-------- 6 files changed, 21 insertions(+), 30 deletions(-) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/README_fr.md b/README_fr.md index 0e3f4d8..dd22399 100644 --- a/README_fr.md +++ b/README_fr.md @@ -16,8 +16,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po ## Vue d’ensemble -Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. - +Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. **Version incluse :** 2023.09.05~ynh1 diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..81a72eb --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. \ No newline at end of file diff --git a/scripts/install b/scripts/install index 152d5c5..9ef3e26 100644 --- a/scripts/install +++ b/scripts/install @@ -27,15 +27,15 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 +ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config #================================================= # SPECIFIC SETUP diff --git a/scripts/remove b/scripts/remove index 79cb058..5b17c2d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -10,18 +10,13 @@ source _common.sh source /usr/share/yunohost/helpers #================================================= -# REMOVE NGINX CONFIGURATION +# REMOVE SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 # Remove the dedicated NGINX config ynh_remove_nginx_config -#================================================= -# REMOVE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=1 - # Remove the dedicated PHP-FPM config ynh_remove_fpm_config diff --git a/scripts/restore b/scripts/restore index 4f759c5..f30ebe1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -10,7 +10,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers - #================================================= # RESTORE THE APP MAIN DIR #================================================= @@ -22,15 +21,6 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" -#================================================= -# RESTORE THE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." - -ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # RESTORE THE MYSQL DATABASE #================================================= @@ -38,6 +28,17 @@ ynh_script_progression --message="Restoring the MySQL database..." --weight=2 ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +#================================================= +# RESTORE SYSTEM CONFIGURATIONS +#================================================= +# RESTORE THE PHP-FPM CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 + +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" + +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 68e2e42..4df9deb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,20 +39,15 @@ chown -R $app:www-data "$install_dir" chown -R $app: "${install_dir}/.env" "${install_dir}/storage/" "${install_dir}/bootstrap/" #================================================= -# NGINX CONFIGURATION +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 - # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config #================================================= # SPECIFIC UPGRADE From 57f1e37655aa489efeeaf3a6754b4aeb30436c91 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Wed, 11 Oct 2023 18:47:33 +0200 Subject: [PATCH 19/30] Upgrade to v2023.10.11 (#50) * Upgrade to v2023.10.11 * Auto-update README --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b615f5c..0ea356f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.09.05~ynh1 +**Shipped version:** 2023.10.11~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index dd22399..cae9d7d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. -**Version incluse :** 2023.09.05~ynh1 +**Version incluse :** 2023.10.11~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 2ef8c07..961b0a4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.09.05~ynh1" +version = "2023.10.11~ynh1" maintainers = ["JimboJoe"] @@ -52,8 +52,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/2323e9c0e36100f561ba03f029d87e2543636e81.tar.gz" - sha256 = "a3e26b429e3121e728447fd26d060321b695c56aeac3fc13eb0a79d4d80c217e" + url = "https://github.com/CachetHQ/Cachet/archive/2b8580727fad316f711698f6dfbeabe88ed0429a.tar.gz" + sha256 = "cca2b51fad8f14d7d822c1b266499092fa87246b35bbdbdf7c2602bdacdf10a7" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 1480f1e7b4727ffe2f4ecdc9916806494926a1cd Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Fri, 27 Oct 2023 19:40:42 +0200 Subject: [PATCH 20/30] Upgrade to v2023.10.27 (#52) --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 961b0a4..ddcd1af 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.10.11~ynh1" +version = "2023.10.27~ynh1" maintainers = ["JimboJoe"] @@ -52,8 +52,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/2b8580727fad316f711698f6dfbeabe88ed0429a.tar.gz" - sha256 = "cca2b51fad8f14d7d822c1b266499092fa87246b35bbdbdf7c2602bdacdf10a7" + url = "https://github.com/CachetHQ/Cachet/archive/7b07983d54cc5b83064c2bbe3848c3f231cf8799.tar.gz" + sha256 = "241f23ce6bf3c57f8716f4f94a4dbc4d3dfdaa746ab67430920de0eda6469f7a" autoupdate.strategy = "latest_github_commit" [resources.system_user] From d1baef954bb4834a26a00211c7a55e02eebd0444 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Wed, 8 Nov 2023 09:01:05 +0100 Subject: [PATCH 21/30] Upgrade to v2023.11.07 (#53) * Upgrade to v2023.11.07 * Auto-update README --- README.md | 3 ++- README_fr.md | 3 ++- manifest.toml | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0ea356f..10dd4eb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.10.11~ynh1 +**Shipped version:** 2023.11.07~ynh1 **Demo:** https://demo.cachethq.io @@ -32,6 +32,7 @@ Cachet is a status page for your API, service or company. Built with all of the * Official app website: * Official admin documentation: * Upstream app code repository: +* YunoHost Store: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index cae9d7d..7642b41 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. -**Version incluse :** 2023.10.11~ynh1 +**Version incluse :** 2023.11.07~ynh1 **Démo :** https://demo.cachethq.io @@ -31,6 +31,7 @@ Cachet est une page de statut pour votre API, service ou entreprise. Construit a * Site officiel de l’app : * Documentation officielle de l’admin : * Dépôt de code officiel de l’app : +* YunoHost Store: * Signaler un bug : ## Informations pour les développeurs diff --git a/manifest.toml b/manifest.toml index ddcd1af..a032628 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.10.27~ynh1" +version = "2023.11.07~ynh1" maintainers = ["JimboJoe"] @@ -52,8 +52,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/7b07983d54cc5b83064c2bbe3848c3f231cf8799.tar.gz" - sha256 = "241f23ce6bf3c57f8716f4f94a4dbc4d3dfdaa746ab67430920de0eda6469f7a" + url = "https://github.com/CachetHQ/Cachet/archive/91e4d8aba7ce425c0b27ec74de2bc4792b3a107b.tar.gz" + sha256 = "d0c50aa8754b9e9ac2b7b26d086953fe698a7b7957b28df0209783a87485a21f" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 75ee1b3a6d5a50e08eea9554cdcd28c2404e7e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:14:35 +0100 Subject: [PATCH 22/30] cleaning --- manifest.toml | 15 +++++++++------ scripts/install | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index a032628..b7dfccf 100644 --- a/manifest.toml +++ b/manifest.toml @@ -22,8 +22,11 @@ code = "https://github.com/CachetHQ/Cachet" yunohost = ">= 11.2" architectures = "all" multi_instance = true + ldap = false + sso = false + disk = "50M" ram.build = "50M" ram.runtime = "50M" @@ -66,12 +69,12 @@ ram.runtime = "50M" [resources.apt] packages = [ "mariadb-server", - "php7.4", - "php7.4-gd", - "php7.4-mbstring", - "php7.4-xml", - "php7.4-mysql", - "php7.4-sqlite3" + "php8.2", + "php8.2-gd", + "php8.2-mbstring", + "php8.2-xml", + "php8.2-mysql", + "php8.2-sqlite3" ] [resources.database] diff --git a/scripts/install b/scripts/install index 9ef3e26..3027206 100644 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,7 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Pre-configuring Cachet..." --weight=10 -ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env" +ynh_add_config --template=".env.example" --destination="$install_dir/.env" #================================================= # INSTALL AND INITIALIZE COMPOSER From 1752e23303936a0d601a306795c067e4b9465bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 28 Feb 2024 08:35:09 +0100 Subject: [PATCH 23/30] Update manifest.toml --- manifest.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.toml b/manifest.toml index b7dfccf..5365649 100644 --- a/manifest.toml +++ b/manifest.toml @@ -69,12 +69,12 @@ ram.runtime = "50M" [resources.apt] packages = [ "mariadb-server", - "php8.2", - "php8.2-gd", - "php8.2-mbstring", - "php8.2-xml", - "php8.2-mysql", - "php8.2-sqlite3" + "php7.4", + "php7.4-gd", + "php7.4-mbstring", + "php7.4-xml", + "php7.4-mysql", + "php7.4-sqlite3" ] [resources.database] From 620503bc2be227a8edaf1a9aae874b27419fd9e8 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 28 Feb 2024 07:35:13 +0000 Subject: [PATCH 24/30] Auto-update README --- README.md | 4 ++-- README_fr.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10dd4eb..fc2cf30 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -47,4 +47,4 @@ or sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**More info regarding app packaging:** +**More info regarding app packaging:** \ No newline at end of file diff --git a/README_fr.md b/README_fr.md index 7642b41..758651f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,5 +1,5 @@ From 35ffe15f83457f5f697d2472418f9064734daefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 28 Feb 2024 08:36:15 +0100 Subject: [PATCH 25/30] cleaning --- scripts/install | 2 +- scripts/upgrade | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/scripts/install b/scripts/install index 3027206..81c8865 100644 --- a/scripts/install +++ b/scripts/install @@ -71,7 +71,7 @@ password_hash="$(cd $install_dir ; php$phpversion artisan tinker -q --no-ansi password_pash="${password_hash::-1}" # Remove last character # Populate MySQL database -ynh_add_config --template="../conf/init-mysql.sql" --destination="$install_dir/init-mysql.sql" +ynh_add_config --template="init-mysql.sql" --destination="$install_dir/init-mysql.sql" ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < "$install_dir/init-mysql.sql" ynh_delete_file_checksum --file="$install_dir/init-mysql.sql" #REMOVEME? ynh_secure_remove --file="$install_dir/init-mysql.sql" diff --git a/scripts/upgrade b/scripts/upgrade index 4df9deb..cf7b033 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,12 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # SET MAINTENANCE MODE ON #================================================= @@ -25,14 +19,9 @@ exec_artisan "down" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep=".env bootstrap/cachet/production.php" -fi +ynh_setup_source --dest_dir="$install_dir" --keep=".env bootstrap/cachet/production.php" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" From d737fd0c2eddff7a1fbde42c0104734d4cb9c255 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Wed, 28 Feb 2024 11:17:33 +0100 Subject: [PATCH 26/30] Upgrade to v2023.12.01 (#56) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Upgrade to v2023.12.01 * Auto-update README --------- Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fc2cf30..0769a72 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2023.11.07~ynh1 +**Shipped version:** 2023.12.01~ynh1 **Demo:** https://demo.cachethq.io diff --git a/README_fr.md b/README_fr.md index 758651f..68d6c40 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. -**Version incluse :** 2023.11.07~ynh1 +**Version incluse :** 2023.12.01~ynh1 **Démo :** https://demo.cachethq.io diff --git a/manifest.toml b/manifest.toml index 5365649..ee5f120 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.11.07~ynh1" +version = "2023.12.01~ynh1" maintainers = ["JimboJoe"] @@ -55,8 +55,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/91e4d8aba7ce425c0b27ec74de2bc4792b3a107b.tar.gz" - sha256 = "d0c50aa8754b9e9ac2b7b26d086953fe698a7b7957b28df0209783a87485a21f" + url = "https://github.com/CachetHQ/Cachet/archive/8b565ab7f05ce8b89a40e61330a7e0ac2bf55630.tar.gz" + sha256 = "1385a972e2733f0da38ee186c853d470de1bc95532996d52106135685ef35b0f" autoupdate.strategy = "latest_github_commit" [resources.system_user] From eec449d1db63ff3297b6354f429c391b2f2d34bd Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Fri, 8 Mar 2024 22:15:03 +0100 Subject: [PATCH 27/30] Upgrade to v2024.03.08 (#58) * Upgrade to v2024.03.08 * Auto-update README --- README.md | 17 ++++++++--------- README_fr.md | 17 ++++++++--------- manifest.toml | 6 +++--- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 0769a72..78c76f0 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,9 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. +**Shipped version:** 2024.03.08~ynh1 -**Shipped version:** 2023.12.01~ynh1 - -**Demo:** https://demo.cachethq.io +**Demo:** ## Screenshots @@ -29,11 +28,11 @@ Cachet is a status page for your API, service or company. Built with all of the ## Documentation and resources -* Official app website: -* Official admin documentation: -* Upstream app code repository: -* YunoHost Store: -* Report a bug: +- Official app website: +- Official admin documentation: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: ## Developer info @@ -47,4 +46,4 @@ or sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**More info regarding app packaging:** \ No newline at end of file +**More info regarding app packaging:** diff --git a/README_fr.md b/README_fr.md index 68d6c40..75af581 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,10 +17,9 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po ## Vue d’ensemble Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. +**Version incluse :** 2024.03.08~ynh1 -**Version incluse :** 2023.12.01~ynh1 - -**Démo :** https://demo.cachethq.io +**Démo :** ## Captures d’écran @@ -28,11 +27,11 @@ Cachet est une page de statut pour votre API, service ou entreprise. Construit a ## Documentations et ressources -* Site officiel de l’app : -* Documentation officielle de l’admin : -* Dépôt de code officiel de l’app : -* YunoHost Store: -* Signaler un bug : +- Site officiel de l’app : +- Documentation officielle de l’admin : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs @@ -46,4 +45,4 @@ ou sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/manifest.toml b/manifest.toml index ee5f120..d9616df 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2023.12.01~ynh1" +version = "2024.03.08~ynh1" maintainers = ["JimboJoe"] @@ -55,8 +55,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/8b565ab7f05ce8b89a40e61330a7e0ac2bf55630.tar.gz" - sha256 = "1385a972e2733f0da38ee186c853d470de1bc95532996d52106135685ef35b0f" + url = "https://github.com/CachetHQ/Cachet/archive/517d0a813f3098c703fdcff41c5f9877c38ebec7.tar.gz" + sha256 = "cc08bf31a6d0b05d6832bc7f5c53b6929c2fea833439c8ee395b9667334cbb4b" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 09f0dfcc9cf9971802d105ab54bf74ec2cc8746e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 8 Mar 2024 21:17:49 +0000 Subject: [PATCH 28/30] Auto-update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b5ca90..78c76f0 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,4 @@ or sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**More info regarding app packaging:** \ No newline at end of file +**More info regarding app packaging:** From 106ec266c9ea2967e7c07c467965782aa47bd4c0 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 11 Mar 2024 21:30:55 +0100 Subject: [PATCH 29/30] Upgrade to v2024.03.11 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index d9616df..93cadfa 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cachet" description.en = "Open source status page system" description.fr = "Système de page de statut open source" -version = "2024.03.08~ynh1" +version = "2024.03.11~ynh1" maintainers = ["JimboJoe"] @@ -55,8 +55,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/CachetHQ/Cachet/archive/517d0a813f3098c703fdcff41c5f9877c38ebec7.tar.gz" - sha256 = "cc08bf31a6d0b05d6832bc7f5c53b6929c2fea833439c8ee395b9667334cbb4b" + url = "https://github.com/CachetHQ/Cachet/archive/3e97a874fad1c2a0243b247d2c4e89eb81bac477.tar.gz" + sha256 = "707045be6e638f120651e4e48e84614599683554fd45f1bbdd90b407d125d6e9" autoupdate.strategy = "latest_github_commit" [resources.system_user] From 4caff3cd00d528b6b3699884fdcd5480138f5f7e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 7 Apr 2024 14:47:56 +0000 Subject: [PATCH 30/30] Auto-update READMEs --- ALL_README.md | 6 ++++++ README.md | 17 +++++++++-------- README_eu.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ README_fr.md | 33 +++++++++++++++++---------------- README_gl.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+), 24 deletions(-) create mode 100644 ALL_README.md create mode 100644 README_eu.md create mode 100644 README_gl.md diff --git a/ALL_README.md b/ALL_README.md new file mode 100644 index 0000000..77b7509 --- /dev/null +++ b/ALL_README.md @@ -0,0 +1,6 @@ +# All available README files by language + +- [Read the README in English](README.md) +- [Irakurri README euskaraz](README_eu.md) +- [Lire le README en français](README_fr.md) +- [Le o README en galego](README_gl.md) diff --git a/README.md b/README.md index 78c76f0..4a5cbe6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -9,16 +9,17 @@ It shall NOT be edited by hand. [![Install Cachet with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) -*[Lire ce readme en français.](./README_fr.md)* +*[Read this README in other languages.](./ALL_README.md)* -> *This package allows you to install Cachet quickly and simply on a YunoHost server. -If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* +> *This package allows you to install Cachet quickly and simply on a YunoHost server.* +> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* ## Overview Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. -**Shipped version:** 2024.03.08~ynh1 + +**Shipped version:** 2024.03.11~ynh1 **Demo:** @@ -36,11 +37,11 @@ Cachet is a status page for your API, service or company. Built with all of the ## Developer info -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). +Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). -To try the testing branch, please proceed like that. +To try the `testing` branch, please proceed like that: -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug or sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..cffb61a --- /dev/null +++ b/README_eu.md @@ -0,0 +1,50 @@ + + +# Cachet YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) + +[![Instalatu Cachet YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Cachet YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. + + +**Paketatutako bertsioa:** 2024.03.11~ynh1 + +**Demoa:** + +## Pantaila-argazkiak + +![Cachet(r)en pantaila-argazkia](./doc/screenshots/main-interface.png) + +## Dokumentazioa eta baliabideak + +- Aplikazioaren webgune ofiziala: +- Administratzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug +edo +sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** diff --git a/README_fr.md b/README_fr.md index 75af581..bda763b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,6 +1,6 @@ # Cachet pour YunoHost @@ -9,17 +9,18 @@ It shall NOT be edited by hand. [![Installer Cachet avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) -*[Read this readme in english.](./README.md)* +*[Lire le README dans d'autres langues.](./ALL_README.md)* -> *Ce package vous permet d’installer Cachet rapidement et simplement sur un serveur YunoHost. -Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* +> *Ce package vous permet d’installer Cachet rapidement et simplement sur un serveur YunoHost.* +> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* ## Vue d’ensemble Cachet est une page de statut pour votre API, service ou entreprise. Construit avec toutes les fonctionnalités que vous attendez d'une page de status, Cachet est livré avec une API puissante, un système métrique, une prise en charge de plusieurs utilisateurs, une authentification à deux facteurs pour une sécurité accrue et est facile à configurer. Une alternative puissante et auto-hébergée à StatusPage.io et Status.io. -**Version incluse :** 2024.03.08~ynh1 -**Démo :** +**Version incluse :** 2024.03.11~ynh1 + +**Démo :** ## Captures d’écran @@ -27,22 +28,22 @@ Cachet est une page de statut pour votre API, service ou entreprise. Construit a ## Documentations et ressources -- Site officiel de l’app : -- Documentation officielle de l’admin : -- Dépôt de code officiel de l’app : -- YunoHost Store : -- Signaler un bug : +- Site officiel de l’app : +- Documentation officielle de l’admin : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs -Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). +Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). -Pour essayer la branche testing, procédez comme suit. +Pour essayer la branche `testing`, procédez comme suit : -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ou sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** +**Plus d’infos sur le packaging d’applications :** diff --git a/README_gl.md b/README_gl.md new file mode 100644 index 0000000..736b3a1 --- /dev/null +++ b/README_gl.md @@ -0,0 +1,50 @@ + + +# Cachet para YunoHost + +[![Nivel de integración](https://dash.yunohost.org/integration/cachet.svg)](https://dash.yunohost.org/appci/app/cachet) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/cachet.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/cachet.maintain.svg) + +[![Instalar Cachet con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cachet) + +*[Le este README en outros idiomas.](./ALL_README.md)* + +> *Este paquete permíteche instalar Cachet de xeito rápido e doado nun servidor YunoHost.* +> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.* + +## Vista xeral + +Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io. + + +**Versión proporcionada:** 2024.03.11~ynh1 + +**Demo:** + +## Capturas de pantalla + +![Captura de pantalla de Cachet](./doc/screenshots/main-interface.png) + +## Documentación e recursos + +- Web oficial da app: +- Documentación oficial para admin: +- Repositorio de orixe do código: +- Tenda YunoHost: +- Informar dun problema: + +## Info de desenvolvemento + +Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/cachet_ynh/tree/testing). + +Para probar a rama `testing`, procede deste xeito: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug +ou +sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug +``` + +**Máis info sobre o empaquetado da app:**