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

try create admin during install

This commit is contained in:
Thomas 2024-02-11 17:26:49 +01:00 committed by GitHub
parent 96ef6deb91
commit cfb70e42bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 KiB

After

Width:  |  Height:  |  Size: 335 KiB

View file

@ -143,6 +143,9 @@ pushd "$install_dir/live/services/web"
#ynh_exec_warn_less npm install ldapts #ynh_exec_warn_less npm install ldapts
#ynh_exec_warn_less npm install ldap-escape #ynh_exec_warn_less npm install ldap-escape
ynh_secure_remove --file="$install_dir/live/services/web/node_modules/.cache" ynh_secure_remove --file="$install_dir/live/services/web/node_modules/.cache"
# create admin user
ynh_exec_as $app node modules/server-ce-scripts/scripts/create-user --admin --email=admin_mail"
popd popd
chmod 750 "$install_dir/live" chmod 750 "$install_dir/live"