mirror of
https://github.com/YunoHost-Apps/emailpoubelle_ynh.git
synced 2024-09-03 18:26:29 +02:00
Update upgrade
This commit is contained in:
parent
abb625fda0
commit
f86c40569f
1 changed files with 8 additions and 9 deletions
|
@ -19,18 +19,17 @@ admin=$(ynh_app_setting_get $app admin)
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
db_name=$(ynh_app_setting_get $app db_name)
|
db_name=$(ynh_app_setting_get $app db_name)
|
||||||
|
|
||||||
final_path=/var/www/$app
|
|
||||||
|
|
||||||
|
test -e "$final_path" || ynh_die "The path $final_path does not exist"
|
||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
test -e "$final_path" || ynh_die "This path already contains a folder"
|
cp -R ../src/bin/ $final_path/bin
|
||||||
sudo mkdir -p $final_path
|
cp -R ../src/lib/ $final_path/lib
|
||||||
sudo cp -R ../src/bin/ $final_path/bin
|
cp -R ../src/lang/ $final_path/lang
|
||||||
sudo cp -R ../src/lib/ $final_path/lib
|
cp -R ../src/www/ $final_path/www
|
||||||
sudo cp -R ../src/locale/ $final_path/locale
|
cp ../src/emailPoubelle.php $final_path/emailPoubelle.php
|
||||||
sudo cp -R ../src/www/ $final_path/www
|
cp ../src/emailPoubelleAdmin.php $final_path/emailPoubelleAdmin.php
|
||||||
sudo cp ../src/emailPoubelle.php $final_path/emailPoubelle.php
|
chown -R www-data:www-data $final_path
|
||||||
sudo chown -R www-data:www-data $final_path
|
|
||||||
|
|
||||||
#adding php-cli for cron
|
#adding php-cli for cron
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
|
|
Loading…
Reference in a new issue