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