mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Update install
This commit is contained in:
parent
4b3b9f35b5
commit
64e6166071
1 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,13 @@ sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && f
|
|||
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
|
||||
sudo cp -a ../sources/roadiz-src-master/. $final_path
|
||||
|
||||
# Modify the config.yml
|
||||
sed -i "s@db_user@$db_user@g" ../conf/config.yml
|
||||
sed -i "s@db_pass@$db_pass@g" ../conf/config.yml
|
||||
sed -i "s@db_name@$db_name@g" ../conf/config.yml
|
||||
sudo mv ../conf/config.yml $final_path/config.yml
|
||||
|
||||
|
||||
# Installation
|
||||
# Get Composer:
|
||||
pushd $final_path
|
||||
|
@ -85,6 +92,8 @@ sudo chown www-data:www-data $final_path -R
|
|||
sudo chmod 775 $final_path -R
|
||||
sudo rm $final_path/install.php
|
||||
|
||||
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@ROOT_PATH@$final_path@g" ../conf/nginx.conf
|
||||
sed -i "s@APP_URL@$domain$path/@g" ../conf/nginx.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue