|
|
|
@ -135,6 +135,12 @@ function install_complete() {
|
|
|
|
|
|
|
|
|
|
#set nginx host directory to snapp_dir
|
|
|
|
|
sed -i 's#/var/www/html#'"$snapp_dir"'#g' /etc/nginx/sites-enabled/default
|
|
|
|
|
#obtain snapp address
|
|
|
|
|
snapp_address=$(host -t cname localhost.loki $IP | awk '/alias for/ { print $6 }')
|
|
|
|
|
#remove "." from end of string
|
|
|
|
|
snapp_address=${snapp_address::-1}
|
|
|
|
|
#append server_name _ with snapp address in /etc/nginx/site-enable/default
|
|
|
|
|
sed -i 's/\(server_name _\)/\1''$snapp_address'/' /etc/nginx/sites-enabled/default
|
|
|
|
|
|
|
|
|
|
#clean out installer files
|
|
|
|
|
sudo rm -r $snapp_dir/installers || install_error "Unable to remove installers"
|
|
|
|
@ -152,7 +158,6 @@ function install_complete() {
|
|
|
|
|
echo -e " by Minotaurware.net "
|
|
|
|
|
install_log "Daedalus has completed your installation"
|
|
|
|
|
IP="127.3.2.1"
|
|
|
|
|
snapp_address=$(host -t cname localhost.loki $IP | awk '/alias for/ { print $6 }')
|
|
|
|
|
install_warning "Your Lokinet Address is:\nhttp://${snapp_address}"
|
|
|
|
|
install_warning "Place your SNApp in ${snapp_dir}"
|
|
|
|
|
echo -n "Do you wish to go live with test snapp? [y/N]: "
|
|
|
|
|