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

Apply Aleks suggestions + some fixes

This commit is contained in:
Thomas 2023-12-05 19:12:12 +01:00 committed by GitHub
parent 00ba7e1f80
commit 3607272bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 27 deletions

View file

@ -47,8 +47,8 @@ ram.runtime = "50M"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://github.com/overleaf/overleaf/archive/b1978d936214d9af10edf9c4d611fb0aa68aab5b.zip"
sha256 = "c906b7bb0750dd0fa1d19f90324a75120f999f09e41a27d2c4fdee724124cf7d"
url = "https://github.com/overleaf/overleaf/archive/a4ca117640c1f18c1b3ca0564576fdbece427ba5.tar.gz"
sha256 = "65ea4861384cf56f0b390cf2f28dbfbb57d623f531a87d4a49b97f19c16023f8"
[resources.sources.ldap]
@ -69,7 +69,8 @@ ram.runtime = "50M"
main.auth_header = false
admin.url = "/launchpad"
admin.allowed = "admins"
admin.allowed = "admins"
admin.show_tile = false
[resources.ports]
main.default = 8095

View file

@ -9,13 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# Load settings
#=================================================
ynh_app_setting_set --app=$app --key=language --value=$language
ynh_app_setting_set --app=$app --key=crypto_random --value=$crypto_random
ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password
#=================================================
# STANDARD MODIFICATIONS
#=================================================

View file

@ -17,7 +17,6 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_app_setting_set --app=$app --key=language --value=$language
ynh_app_setting_set --app=$app --key=crypto_random --value=$crypto_random
ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password
@ -143,9 +142,9 @@ popd
chmod 750 "$install_dir/live"
chmod -R o-rwx "$install_dir/live"
chown -R $app:www-data "$install_dir/live"
chown -R $app:www-data "$install_dir/config"
mkdir -p "$install_dir/tmp/uploads"
chmod 750 "$install_dir/tmp"
chmod -R o-rwx "$install_dir/tmp"
chown -R $app:www-data "$install_dir/tmp"

View file

@ -76,12 +76,6 @@ then
ynh_script_progression --message="Removing $app-web service integration..."
yunohost service remove "$app-web"
fi
if ynh_exec_warn_less yunohost service status "$mongod" >/dev/null
then
ynh_script_progression --message="Removing mongod service integration..."
yunohost service remove "mongod"
fi
#=================================================
# STOP AND REMOVE SERVICE

View file

@ -10,8 +10,6 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password
#=================================================
# INSTALL DEPENDENCIES
#=================================================

View file

@ -9,13 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# Load settings
#=================================================
ynh_app_setting_set --app=$app --key=language --value=$language
ynh_app_setting_set --app=$app --key=crypto_random --value=$crypto_random
ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password
#=================================================
# CHECK VERSION
#=================================================