mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
add sudir
This commit is contained in:
parent
9042c6b734
commit
03b8d053bb
3 changed files with 5 additions and 13 deletions
|
@ -17,7 +17,7 @@ admindoc = "https://lycheeorg.github.io/docs/"
|
||||||
code = "https://github.com/LycheeOrg/Lychee"
|
code = "https://github.com/LycheeOrg/Lychee"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.15"
|
yunohost = ">= 11.1.18"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -47,12 +47,14 @@ ram.runtime = "50M"
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/LycheeOrg/Lychee/releases/download/v4.7.2/Lychee.zip"
|
url = "https://github.com/LycheeOrg/Lychee/releases/download/v4.7.2/Lychee.zip"
|
||||||
sha256 = "6353db3f2b0963f4a94576c2b16ed7eb7bb2954cd0b0dd745ba4db47998e8df0"
|
sha256 = "6353db3f2b0963f4a94576c2b16ed7eb7bb2954cd0b0dd745ba4db47998e8df0"
|
||||||
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
[resources.data_dir]
|
||||||
|
subdirs = ["uploads/big", "uploads/import", "uploads/medium", "uploads/raw", "uploads/small", "uploads/thumb"]
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
|
@ -63,8 +63,8 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
ynh_script_progression --message="Creating a data directory..." --weight=1
|
||||||
|
|
||||||
mkdir -p $data_dir/uploads
|
#mkdir -p $data_dir/uploads
|
||||||
mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb}
|
#mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb}
|
||||||
|
|
||||||
chgrp $app -R $install_dir/storage $install_dir/public/dist $install_dir/public/sym $data_dir/uploads
|
chgrp $app -R $install_dir/storage $install_dir/public/dist $install_dir/public/sym $data_dir/uploads
|
||||||
chmod -R 2775 $install_dir/storage/* $install_dir/app/* $install_dir/public/dist $install_dir/public/sym $data_dir/uploads $install_dir/bootstrap/
|
chmod -R 2775 $install_dir/storage/* $install_dir/app/* $install_dir/public/dist $install_dir/public/sym $data_dir/uploads $install_dir/bootstrap/
|
||||||
|
|
|
@ -22,16 +22,6 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
# If new "/home/yunohost.app/$app" doesn't exist, create it
|
|
||||||
if [ -z "/home/yunohost.app/$app" ]; then
|
|
||||||
data_dir=/home/yunohost.app/$app
|
|
||||||
mkdir -p $data_dir
|
|
||||||
chmod 755 $data_dir
|
|
||||||
chown -R $app:www-data $data_dir
|
|
||||||
#REMOVEME? ynh_app_setting_set --app=$app --key=data_dir --value=$data_dir
|
|
||||||
cp -a "$install_dir/public/uploads" "$data_dir/uploads"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If fpm_footprint doesn't exist, create it
|
# If fpm_footprint doesn't exist, create it
|
||||||
if [ -z "${fpm_footprint:-}" ]; then
|
if [ -z "${fpm_footprint:-}" ]; then
|
||||||
fpm_footprint=low
|
fpm_footprint=low
|
||||||
|
|
Loading…
Add table
Reference in a new issue