mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Copy sources/* in final_path
This commit is contained in:
parent
16763221db
commit
4d2ddaedbc
2 changed files with 9 additions and 1 deletions
|
@ -50,9 +50,11 @@ sudo apt-get install --quiet --assume-yes php5-gd php5-sqlite php5-json php5-int
|
|||
sudo mkdir -p $final_path
|
||||
|
||||
# Base site
|
||||
sudo cp -a ../sources/* $final_path/
|
||||
|
||||
# Site adjustments
|
||||
#sed -i "s@DOMAINTOCHANGE@$domain@g" ../sources/index.html
|
||||
#sed -i "s@SITETOCHANGE@$sitename@g" ../sources/index.html
|
||||
#sudo cp ../sources/* $final_path/
|
||||
|
||||
# Set permissions
|
||||
sudo chmod 775 -R $final_path
|
||||
|
|
|
@ -42,6 +42,12 @@ sudo cp ../conf/php-fpm.conf $finalphpconf
|
|||
sudo chown root: $finalphpconf
|
||||
sudo chmod 644 $finalphpconf
|
||||
|
||||
# Removal of old folder and restart from fresh
|
||||
sudo rm -rf $final_path
|
||||
sudo mkdir -p $final_path
|
||||
|
||||
# Base site
|
||||
sudo cp -a ../sources/* $final_path/
|
||||
|
||||
# We adjust permissions
|
||||
sudo chmod 775 -R $final_path
|
||||
|
|
Loading…
Reference in a new issue