mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Update upgrade
This commit is contained in:
parent
97a80ab71a
commit
12686136e0
1 changed files with 5 additions and 25 deletions
|
@ -19,44 +19,24 @@ language=$(ynh_app_setting_get "$app" language)
|
||||||
# Remove trailing "/" for next commands
|
# Remove trailing "/" for next commands
|
||||||
path_url=${path_url%/}
|
path_url=${path_url%/}
|
||||||
|
|
||||||
sudo cp $final_path/conf/config.yml /tmp/
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
ynh_app_setting_set $app final_path $final_path
|
ynh_app_setting_set $app final_path $final_path
|
||||||
SETUP_SOURCE # Télécharge la source, décompresse et copie dans $final_path
|
sudo git pull origin master;
|
||||||
|
|
||||||
# Set permissions to app files
|
|
||||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
|
||||||
sudo chown -R root: $src_path
|
|
||||||
|
|
||||||
sudo mv /tmp/config.yml $final_path/conf/config.yml
|
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||||
sudo php composer-setup.php
|
sudo php composer-setup.php
|
||||||
sudo php -r "unlink('composer-setup.php');"
|
sudo php -r "unlink('composer-setup.php');"
|
||||||
sudo ./composer.phar install --no-dev -o;
|
sudo ./composer update -n --no-dev;
|
||||||
# Install base fixtures
|
sudo ./bin/roadiz generate:nsentities;
|
||||||
sudo ./bin/roadiz install -n
|
sudo ./bin/roadiz orm:schema-tool:update --dump-sql;
|
||||||
# Install DefaultTheme
|
sudo ./bin/roadiz orm:schema-tool:update --force;
|
||||||
sudo ./bin/roadiz themes:install -n "/Themes/DefaultTheme/DefaultThemeApp"
|
|
||||||
# Install DefaultTheme node-type, settings and tags
|
|
||||||
sudo ./bin/roadiz themes:install -n --data "/Themes/DefaultTheme/DefaultThemeApp"
|
|
||||||
# Generate node-type Doctrine entities
|
|
||||||
sudo ./bin/roadiz generate:nsentities
|
|
||||||
# Update database with new node-types
|
|
||||||
sudo ./bin/roadiz orm:schema-tool:update -n --force
|
|
||||||
# Add DefaultTheme node fixtures
|
|
||||||
sudo ./bin/roadiz themes:install -n --nodes "/Themes/DefaultTheme/DefaultThemeApp"
|
|
||||||
# Clear caches
|
|
||||||
sudo ./bin/roadiz cache:clear -e dev
|
|
||||||
sudo ./bin/roadiz cache:clear -e prod
|
sudo ./bin/roadiz cache:clear -e prod
|
||||||
sudo php ./bin/roadiz cache:clear -e prod --preview
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue