From ceea8f3265cfc5c4aff00cee0171a2c524b5f457 Mon Sep 17 00:00:00 2001 From: "J. Fernando Lagrange" Date: Sun, 17 Sep 2017 11:03:01 +0200 Subject: [PATCH] Remove identation --- scripts/install | 40 ++++++++++++++++++++-------------------- scripts/remove | 16 ++++++++-------- scripts/upgrade | 36 ++++++++++++++++++------------------ 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/scripts/install b/scripts/install index ab9ee1a..5c03660 100644 --- a/scripts/install +++ b/scripts/install @@ -6,37 +6,37 @@ set -eu app=$YNH_APP_INSTANCE_NAME # Retrieve arguments - domain=$YNH_APP_ARG_DOMAIN - path=$YNH_APP_ARG_PATH +domain=$YNH_APP_ARG_DOMAIN +path=$YNH_APP_ARG_PATH # Source YunoHost helpers - source /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Check domain/path availability - sudo yunohost app checkurl "${domain}${path}" -a "$app" \ - || ynh_die "Path not available: ${domain}${path}" +sudo yunohost app checkurl "${domain}${path}" -a "$app" \ +|| ynh_die "Path not available: ${domain}${path}" # Install dependencies - sudo apt-get update - sudo apt-get install nodejs-legacy npm python-pip python-dev python-lxml python-imaging -y -qq - sudo pip install weboob +sudo apt-get update +sudo apt-get install nodejs-legacy npm python-pip python-dev python-lxml python-imaging -y -qq +sudo pip install weboob # Build the app - src_path=/home/yunohost.app/$app - sudo git clone https://framagit.org/bnjbvr/kresus.git $src_path - sudo sh -c "cd $src_path && make install" +src_path=/home/yunohost.app/$app +sudo git clone https://framagit.org/bnjbvr/kresus.git $src_path +sudo sh -c "cd $src_path && make install" # Modify Nginx configuration file and copy it to Nginx conf directory - nginx_conf=../conf/nginx.conf - sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf - sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf +nginx_conf=../conf/nginx.conf +sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf +sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf # Setup service - systemd_service=../conf/kresus.service - sed -i "s@YNH_HOME@$src_path@g" $systemd_service - sudo cp $systemd_service /etc/systemd/system/$app.service - systemctl enable $app - systemctl start $app +systemd_service=../conf/kresus.service +sed -i "s@YNH_HOME@$src_path@g" $systemd_service +sudo cp $systemd_service /etc/systemd/system/$app.service +systemctl enable $app +systemctl start $app # Reload services - sudo service nginx reload +sudo service nginx reload diff --git a/scripts/remove b/scripts/remove index d9e5b11..d2caf7a 100644 --- a/scripts/remove +++ b/scripts/remove @@ -3,17 +3,17 @@ app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers - source /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Retrieve app settings - domain=$(ynh_app_setting_get "$app" domain) +domain=$(ynh_app_setting_get "$app" domain) # Remove sources - systemctl stop $app - systemctl disable $app - sudo rm -rf /home/yunohost.app/$app - sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf - sudo rm -f /etc/systemd/system/$app.service +systemctl stop $app +systemctl disable $app +sudo rm -rf /home/yunohost.app/$app +sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf +sudo rm -f /etc/systemd/system/$app.service # Reload nginx service - sudo service nginx reload +sudo service nginx reload diff --git a/scripts/upgrade b/scripts/upgrade index f2bc045..1c5bc97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,30 +6,30 @@ set -eu app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers - source /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Retrieve app settings - domain=$(ynh_app_setting_get "$app" domain) - path=$(ynh_app_setting_get "$app" path) +domain=$(ynh_app_setting_get "$app" domain) +path=$(ynh_app_setting_get "$app" path) # Build the app - src_path=/home/yunohost.app/$app - sudo mkdir -p $src_path $src_path/node_modules - sudo git clone https://framagit.org/bnjbvr/kresus.git $src_path - sudo npm install --prefix $src_path $src_path - sudo .$src_path/scripts/build.sh +src_path=/home/yunohost.app/$app +sudo mkdir -p $src_path $src_path/node_modules +sudo git clone https://framagit.org/bnjbvr/kresus.git $src_path +sudo npm install --prefix $src_path $src_path +sudo .$src_path/scripts/build.sh # Modify Nginx configuration file and copy it to Nginx conf directory - nginx_conf=../conf/nginx.conf - sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf - sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf +nginx_conf=../conf/nginx.conf +sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf +sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf # Setup service - systemd_service=../conf/kresus.service - sed -i "s@APP_TO_CHANGE@$app@g" $systemd_service - sudo cp $systemd_service /etc/systemd/system/$app.service - systemctl enable $app - systemctl start $app - +systemd_service=../conf/kresus.service +sed -i "s@APP_TO_CHANGE@$app@g" $systemd_service +sudo cp $systemd_service /etc/systemd/system/$app.service +systemctl enable $app +systemctl start $app + # Reload nginx service - sudo service nginx reload +sudo service nginx reload