Replies: 9 comments 2 replies
-
Oh, and another thing that this script doesn't manage (whereas the command
I added the following files in the "bash-script-install" folder to help with that :
With them and solving my two questions aove, I believe we could make a Yunohost package now. |
Beta Was this translation helpful? Give feedback.
-
This script works also fro Debian 12 but it needs some adjustment because it's not python3.10 but python3.11. |
Beta Was this translation helpful? Give feedback.
-
If I check the differences between the Yunohost /etc/nginx/nginx.conf and the nginx.conf file provided by Dokos, here are the additional lines in the dokos nginx.conf file :
How could I merge these lines into the /tec/nginx/conf.d/dokos.conf given fil (which for now is integrated into the script as EOF ?
|
Beta Was this translation helpful? Give feedback.
-
I guess I can add everything which is within http to the conf.d/dokos.conf file but what about these lines ?
|
Beta Was this translation helpful? Give feedback.
-
I found where are coming the two files. For the reccord, here comes the supervisor.conf file : https://gitlab.com/dokos/docli/-/blob/master/bench/config/templates/supervisor.conf?ref_type=heads |
Beta Was this translation helpful? Give feedback.
-
I end up to this situation that I hope is satisfying.
Instead the following /etc/nginx/conf.d/dokos.conf file :
And No more
I tricked the command
It's not very nice but it works. I hope it will work also for a Yunohost package. |
Beta Was this translation helpful? Give feedback.
-
[Update] Instead of tricking So the script becomes
which is much better and make me more confident to start on a Yunohost package. |
Beta Was this translation helpful? Give feedback.
-
In order to avoid these two sed command line, I have made an upstream PR : frappe/frappe#24150 |
Beta Was this translation helpful? Give feedback.
-
Ce PR n'est pas passé mais un autre oui et a été intégré au code de frappe puis de Dodock. Il me semble que ce script peut maintenant servir de base à la création d'un paquet Yunohost 12. |
Beta Was this translation helpful? Give feedback.
-
I've made good progress on my Dokos bash install script.
You can find it here : https://github.com/Thatoo/Dokos_ynh/tree/Thatoo-bash-script-install/bash-script-install
In order to make it a yunohost package, I have two questions :
/etc/nginx/nginx.conf
with a specificnginx.conf
file that you can find at the same urlIs it really a need? I'm not able to judge the differences between this specific ngix.conf file and a standard yunohost nginx config file.
Is there a way in Yunohost packaging to deal with this situation?
bench new-site $site_name --db-name $db_name --db-password $db_pwd --no-setup-db --admin-password $admin_pwd
check, before anything, if running the command
SHOW VARIABLES
in mysql, will give back these two values :Then in the script, I need to ad this
before running the command
bench new-site $site_name --db-name $db_name --db-password $db_pwd --no-setup-db --admin-password $admin_pwd
Is there a way in Yunohost packaging to deal with this situation?
Beta Was this translation helpful? Give feedback.
All reactions