From 031a0581ece99e92e78f06569be0b5e593ee2a86 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 2 Apr 2017 13:30:49 +0100 Subject: [PATCH] Not --- src/freedombone-utils-gnusocialtools | 4 ++-- src/freedombone-utils-nodejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 838250bf..24837929 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -187,11 +187,11 @@ function install_pleroma { fi mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html - cp -r ~/build/pleroma/dist/* /var/www/$pleroma_domain/htdocs/ + cp -r ~/build/pleroma/dist/* /var/www/${pleroma_domain}/htdocs/ pleroma_set_background_image_from_url "$pleroma_domain" "$background_url" "$title" - nginx_site=/etc/nginx/sites-available/$pleroma_domain + nginx_site=/etc/nginx/sites-available/${pleroma_domain} sed -i 's|index index.php;|index pleroma.html;|g' $nginx_site } diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index a50b2eb7..35715a38 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -153,7 +153,7 @@ cp /usr/bin/nodejs /usr/local/bin/node cp /usr/bin/nodejs /usr/bin/node /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh npm install -g n@${NODEJS_N_VERSION} --save -if [ -f /usr/local/bin/n ]; then +if [ ! -f /usr/local/bin/n ]; then exit 1 fi cp /usr/local/bin/n /usr/bin/n