mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
Update upgrade
This commit is contained in:
parent
fb5dd045a6
commit
1731f9223b
1 changed files with 5 additions and 8 deletions
|
@ -112,6 +112,10 @@ then
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -152,7 +156,7 @@ then
|
||||||
# Check if dependencies need to be updated with Composer
|
# Check if dependencies need to be updated with Composer
|
||||||
if [ -f "$final_path/composer.json" ]
|
if [ -f "$final_path/composer.json" ]
|
||||||
then
|
then
|
||||||
ynh_exec_warn_less ynh_composer_exec --commands=\"update --no-dev --prefer-dist\"
|
ynh_exec_warn_less ynh_composer_exec --commands="update"
|
||||||
else
|
else
|
||||||
# Install composer.json
|
# Install composer.json
|
||||||
cp "$final_path/composer.json-dist" "$final_path/composer.json"
|
cp "$final_path/composer.json-dist" "$final_path/composer.json"
|
||||||
|
@ -166,9 +170,6 @@ then
|
||||||
# Create logs and temp directories
|
# Create logs and temp directories
|
||||||
mkdir -p "$final_path/"{logs,temp}
|
mkdir -p "$final_path/"{logs,temp}
|
||||||
|
|
||||||
# Install Installer Update for Composer 2.0
|
|
||||||
ynh_composer_exec --commands="require roundcube/plugin-installer:>=0.2.0"
|
|
||||||
|
|
||||||
# Install net_LDAP
|
# Install net_LDAP
|
||||||
ynh_composer_exec --commands="require kolab/net_ldap3"
|
ynh_composer_exec --commands="require kolab/net_ldap3"
|
||||||
|
|
||||||
|
@ -247,10 +248,6 @@ then
|
||||||
ynh_exec_warn ./bin/update.sh --version=$oldversion -y)
|
ynh_exec_warn ./bin/update.sh --version=$oldversion -y)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
|
||||||
chmod -R o-rwx "$final_path"
|
|
||||||
chown -R $app:www-data "$final_path"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue