Skip to content
Snippets Groups Projects
Commit d145cf73 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use armadillo

parent ca08ef48
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,13 @@ function install_armadillo_front_end {
set_completion_param "${app_name} armadillo commit" "$ARMADILLO_COMMIT"
cp armadillo/config.json.example armadillo/config.json
sed -i "s|\"server\".*|\"server\": \"${armadillo_domain}\",|g" armadillo/config.json
if [[ $ONION_ONLY == 'no' ]]; then
sed -i "s|\"server\".*|\"server\": \"https://${armadillo_domain}\",|g" armadillo/config.json
else
sed -i "s|\"server\".*|\"server\": \"http://${armadillo_domain}\",|g" armadillo/config.json
fi
owner='<a href=\"'"https://${armadillo_domain}/$MY_USERNAME"'\">@'"$MY_USERNAME@${armadillo_domain}"'</a>'
sed -i "s|\"owner\".*|\"$owner\",|g" armadillo/config.json
cp -r $INSTALL_DIR/armadillo/armadillo /var/www/${armadillo_domain}/htdocs/
cp $INSTALL_DIR/armadillo/armadillo.html /var/www/${armadillo_domain}/htdocs/index.html
cp $INSTALL_DIR/armadillo/dash.html /var/www/${armadillo_domain}/htdocs/dash.html
......@@ -843,6 +849,7 @@ function gnusocial_use_armadillo {
sed -i "s|// addPlugin('Qvitter')|addPlugin('Qvitter')|g" /var/www/$domain_name/htdocs/config.php
fi
cp -r $INSTALL_DIR/armadillo/armadillo/* /var/www/${domain_name}/htdocs/armadillo
cp $INSTALL_DIR/armadillo/armadillo.html /var/www/${domain_name}/htdocs/index.html
cp $INSTALL_DIR/armadillo/dash.html /var/www/${domain_name}/htdocs/dash.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment