This commit is contained in:
Bob Mottram 2017-04-02 13:30:49 +01:00
parent d37e7f3888
commit 031a0581ec
2 changed files with 3 additions and 3 deletions

View File

@ -187,11 +187,11 @@ function install_pleroma {
fi fi
mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html 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" 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 sed -i 's|index index.php;|index pleroma.html;|g' $nginx_site
} }

View File

@ -153,7 +153,7 @@ cp /usr/bin/nodejs /usr/local/bin/node
cp /usr/bin/nodejs /usr/bin/node cp /usr/bin/nodejs /usr/bin/node
/usr/bin/curl -0 -L https://npmjs.org/install.sh | sh /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
npm install -g n@${NODEJS_N_VERSION} --save npm install -g n@${NODEJS_N_VERSION} --save
if [ -f /usr/local/bin/n ]; then if [ ! -f /usr/local/bin/n ]; then
exit 1 exit 1
fi fi
cp /usr/local/bin/n /usr/bin/n cp /usr/local/bin/n /usr/bin/n