nodename
This commit is contained in:
parent
f83a9da761
commit
b56d251503
|
@ -37,6 +37,12 @@ sudo apt-get install fail2ban nginx ssl-cert openssl-blacklist php-curl php-sqli
|
||||||
sudo cp -f $MY_PATH/../www/loveland.conf /etc/nginx/conf.d/
|
sudo cp -f $MY_PATH/../www/loveland.conf /etc/nginx/conf.d/
|
||||||
$PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
$PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
||||||
sudo sed -i "s/_PHPVERSION_/$PHPVERSION/g" /etc/nginx/conf.d/loveland.conf
|
sudo sed -i "s/_PHPVERSION_/$PHPVERSION/g" /etc/nginx/conf.d/loveland.conf
|
||||||
|
nodename=$(cat /etc/hostname)
|
||||||
|
extension=$(echo $nodename | cut -d '.' -f 2)
|
||||||
|
if [[ $extension == $nodename ]]; then
|
||||||
|
nodename=$nodename.local
|
||||||
|
fi
|
||||||
|
sudo sed -i "s/_SERVERNAME_/$nodename/g" /etc/nginx/conf.d/loveland.conf
|
||||||
|
|
||||||
sudo systemctl restart nginx || err=1
|
sudo systemctl restart nginx || err=1
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ server {
|
||||||
root /var/www/loveland;
|
root /var/www/loveland;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
server_name loveland;
|
server_name _SERVERNAME_;
|
||||||
|
|
||||||
# _PHPVERSION_=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
# _PHPVERSION_=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
||||||
|
|
||||||
|
|
|
@ -141,8 +141,6 @@ echo '
|
||||||
ScuttleButt communication client...
|
ScuttleButt communication client...
|
||||||
'
|
'
|
||||||
if [[ ! $(which sbotc) ]]; then
|
if [[ ! $(which sbotc) ]]; then
|
||||||
|
|
||||||
|
|
||||||
sudo apt install libsodium-dev build-essential imagemagick -y
|
sudo apt install libsodium-dev build-essential imagemagick -y
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
git clone https://git.scuttlebot.io/%25133ulDgs%2FoC1DXjoK04vDFy6DgVBB%2FZok15YJmuhD5Q%3D.sha256 sbotc
|
git clone https://git.scuttlebot.io/%25133ulDgs%2FoC1DXjoK04vDFy6DgVBB%2FZok15YJmuhD5Q%3D.sha256 sbotc
|
||||||
|
@ -331,7 +329,7 @@ ACTIVATE METAVERSE #SWARM0 INIT SEQUENCE...
|
||||||
ALPHA - ALPHA - ALPHA - ALPHA
|
ALPHA - ALPHA - ALPHA - ALPHA
|
||||||
|
|
||||||
'
|
'
|
||||||
echo "Starting OASIS. http://$nodename:3000"
|
echo "Starting OASIS..."
|
||||||
oasis --allow-host $nodename --host $nodename &
|
oasis --allow-host $nodename --host $nodename &
|
||||||
|
|
||||||
sleep 7
|
sleep 7
|
||||||
|
@ -340,6 +338,7 @@ sleep 7
|
||||||
~/.zen/astroport/zen/cron_VRFY.sh
|
~/.zen/astroport/zen/cron_VRFY.sh
|
||||||
|
|
||||||
echo "Finished...
|
echo "Finished...
|
||||||
|
OASIS: http://$nodename:3000
|
||||||
########################################################################
|
########################################################################
|
||||||
!!!! PLEASE TEST THAT EVERYTHING IS ALRIGHT !!!!
|
!!!! PLEASE TEST THAT EVERYTHING IS ALRIGHT !!!!
|
||||||
Please try ASTROPORT basic commands:
|
Please try ASTROPORT basic commands:
|
||||||
|
|
Loading…
Reference in New Issue