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

Comply with CI demands and fixes

This commit is contained in:
tituspijean 2023-04-22 19:01:42 +02:00
parent 8145c27eb7
commit d43fc135c9
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
10 changed files with 18 additions and 78 deletions

View file

@ -1,28 +0,0 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/path"
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=1
setup_root=1
setup_nourl=0
setup_private=1
setup_public=1
upgrade=1
# 4.9.4
upgrade=1 from_commit=7a150ab29ee969f72dd7846539ae12ac1975165b
# 4.17.1, disabled due to failing in v4.3
# upgrade=1 from_commit=09f260c04435df35edca042486b6a8eb3160333b
backup_restore=1
multi_instance=1
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=7a150ab29ee969f72dd7846539ae12ac1975165b
name=4.9.4
; commit=09f260c04435df35edca042486b6a8eb3160333b
name=4.17.1

3
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1,3 @@
Ghost is a powerful app for new-media creators to publish, share, and grow a business around their content.
It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members.

View file

@ -1,21 +0,0 @@
## Installation
1. No LDAP support.
1. You need more than **1GB** of ram. If you don't have it, please create a **swap memory**.
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
1. This app is multi-instance (you can have more than one Ghost blogging websites on a single YunoHost server)
### Installing the Ghost app
0. Note - When making the install public, your Ghost domain link must be accessed WHILE NOT signed into your YunoHost session. It is recommended to use a incognito mode to sign into your Ghost admin account. If you make your install public, and try to login your Ghost admin account while signed into your YunoHost session, you will get a an authorized header error. The reason for this is because Ghost has a feature that allows for a subscription based access for content. This means Ghost allows for the admin user to setup other users (either other staff or paid/unpaid subscribers) to have the abilility to login outside of YunoHost.
1. **App can be installed by YunoHost admin interface or by the following command:**
`sudo yunohost app install https://github.com/YunoHost-Apps/ghost_ynh`
2. After installation create an **admin account** by visiting `https://domain.tld/ghost/ghost`. If you choose to name your Ghost instance "blog" during YunoHost setup process, then it would be `https://domain.tld/blog/ghost`. This will allow you to continue to setup your admin account and configure your settings.

View file

@ -1,21 +0,0 @@
## Installation
1. Pas de prise en charge LDAP.
1. Vous avez besoin de plus de **1 Go** de RAM. Si vous ne l'avez pas, veuillez créer une **mémoire d'échange**.
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
mkswap /fichier d'échange
swapon / fichier d'échange
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
1. Cette application est multi-instance (vous pouvez avoir plusieurs sites Web de blogs Ghost sur un seul serveur YunoHost)
### Installation de l'application Ghost
0. Remarque - Lorsque vous rendez l'installation publique, vous devez accéder à votre lien de domaine Ghost SANS vous connecter à votre session YunoHost. Il est recommandé d'utiliser un mode incognito pour vous connecter à votre compte administrateur Ghost. Si vous rendez votre installation publique et essayez de vous connecter à votre compte administrateur Ghost tout en étant connecté à votre session YunoHost, vous obtiendrez une erreur d'en-tête autorisée. La raison en est que Ghost a une fonctionnalité qui permet un accès au contenu basé sur un abonnement. Cela signifie que Ghost permet à l'utilisateur administrateur de configurer d'autres utilisateurs (soit d'autres membres du personnel, soit des abonnés payés/non payés) pour avoir la possibilité de se connecter en dehors de YunoHost.
1. ** L'application peut être installée par l'interface d'administration YunoHost ou par la commande suivante : **
`sudo yunohost installer l'application https://github.com/YunoHost-Apps/ghost_ynh`
2. Après l'installation, créez un **compte administrateur** en visitant `https://domain.tld/ghost/ghost`. Si vous choisissez de nommer votre instance Ghost "blog" pendant le processus d'installation de YunoHost, alors ce sera "https://domain.tld/blog/ghost". Cela vous permettra de continuer à configurer votre compte administrateur et à configurer vos paramètres.

View file

@ -1,4 +1,4 @@
Ghost was successfully installed :)
Ghost was successfully installed!
Now create an admin account at https://__DOMAIN____PATH__/ghost

View file

@ -20,8 +20,8 @@ cpe = "cpe:2.3:a:ghost:ghost"
yunohost = ">= 11.1.0"
architectures = "all"
multi_instance = true
ldap = "false"
sso = "false"
ldap = false
sso = false
disk = "1G"
ram.build = "2G"
ram.runtime = "2G"
@ -52,7 +52,7 @@ ram.runtime = "2G"
[resources.ports]
[resources.apt]
packages = "mailutils"
packages = "mailutils mariadb-server"
[resources.database]
type = "mysql"

View file

@ -32,7 +32,7 @@ chown -R $app:$app "$install_dir"
pushd $install_dir
ynh_script_progression --message="Installing and configuring Ghost..."
ynh_exec_as $app $ynh_npm install ghost-cli@latest
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest
ynh_exec_as $app $ynh_node_load_PATH ./node_modules/ghost-cli/bin/ghost install $(ynh_app_upstream_version) \
--no-prompt --no-setup-systemd --no-start \
--dir ghost --no-setup-linux-user \

View file

@ -65,7 +65,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/$app/$app.log"
yunohost service add $app --description="$app daemon for Ghost" --log="$install_dir/ghost/contents/logs"
#=================================================
# START SYSTEMD SERVICE

View file

@ -78,7 +78,7 @@ then
chown -R $app:www-data "$install_dir"
pushd $install_dir
ynh_exec_as $app $ynh_npm install ghost-cli@latest
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest
ynh_exec_as $app $ynh_node_load_PATH ./node_modules/ghost-cli/bin/ghost install $(ynh_app_upstream_version) \
--no-prompt --no-setup-systemd --no-start \
--dir ghost --no-setup-linux-user \
@ -128,7 +128,7 @@ ynh_use_logrotate --logfile="$install_dir/ghost/content/logs" --non-append
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/$app/$app.log"
yunohost service add $app --description="$app daemon for Ghost" --log="$install_dir/ghost/contents/logs"
#=================================================
# START SYSTEMD SERVICE

7
tests.toml Normal file
View file

@ -0,0 +1,7 @@
test_format = 1.0
[default]
exclude = ["install.nourl"]
test_upgrade_from.7a150ab29ee969f72dd7846539ae12ac1975165b.name = "Upgrade from 4.9.4"