Parameter numbers
This commit is contained in:
parent
80ead339b6
commit
baa8c80701
|
@ -157,9 +157,9 @@ function install_qvitter {
|
||||||
|
|
||||||
function install_pleroma {
|
function install_pleroma {
|
||||||
app_name="$1"
|
app_name="$1"
|
||||||
pleroma_domain="$1"
|
pleroma_domain="$2"
|
||||||
background_url="$2"
|
background_url="$3"
|
||||||
title="$3"
|
title="$4"
|
||||||
|
|
||||||
if [ ! -d ~/build/pleroma ]; then
|
if [ ! -d ~/build/pleroma ]; then
|
||||||
function_check git_clone
|
function_check git_clone
|
||||||
|
@ -184,7 +184,7 @@ function install_pleroma {
|
||||||
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/
|
||||||
|
|
||||||
gnusocial_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
|
||||||
|
|
Loading…
Reference in New Issue