diff --git a/scripts/install b/scripts/install index d236b93..0b57597 100644 --- a/scripts/install +++ b/scripts/install @@ -17,6 +17,9 @@ fi final_path=/var/www/$app sudo mkdir -p $final_path sudo cp -a ../sources/* $final_path +if [[ ! -f ${final_path}/conf/setup.ini ]] ; then + sudo cp ${final_path}/conf/sample/setup.ini .. +fi sudo chown -R www-data: $final_path # Modify Nginx configuration file and copy it to Nginx conf directory diff --git a/scripts/upgrade b/scripts/upgrade index 1f8e0a5..819884f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,9 @@ path=${path%/} final_path=/var/www/$app sudo mkdir -p $final_path sudo cp -a ../sources/* $final_path - +if [[ ! -f ${final_path}/conf/setup.ini ]] ; then + sudo cp ${final_path}/conf/sample/setup.ini .. +fi # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@WWWPATH@$final_path@g" ../conf/nginx.conf