Skip to content
Snippets Groups Projects
Commit 815e8466 authored by Alec Leamas's avatar Alec Leamas
Browse files

Test provisions.

parent a99c15d3
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ test "$( perl -e 'print $<')" = "0" || {
echo "You need to be root to do this, giving up"
exit 2
}
external_hostname="$1"
arg_hostname="$1"
......@@ -46,12 +47,13 @@ fi
chmod 777 /var/lib/diaspora/uploads
chown -R diaspora /var/log/diaspora
if [ -n "$arg_hostname" ]; then
sed -i "/pod_url:/s/$hostname/$arg_hostname/g" config/app_config.yml &&
echo "config/app_config.yml updated."
exit 0
if [ -n "$external_hostname" ]; then
sed -i "/pod_url:/s/$hostname/$external_hostname/g" \
config/app_config.yml && echo "config/app_config.yml updated."
exit $?
fi
hostname=$( awk '/pod_url:/ { print $2; exit }' <config/app_config.yml)
while : ; do
echo "Current hostname is \"$hostname\""
......
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