This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set AUTH_URL="http://192.168.8.1/api/webserver/SesTokInfo" | |
curl %AUTH_URL% > temp.txt | |
set /p $RESPONSE = < temp.txt | |
for /f "tokens=2 delims=^<^>" %%a in (temp.txt) do ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Wordpress Setup Script | |
# | |
# This script will install and configure WordPress on an Ubuntu 16.04 droplet | |
export DEBIAN_FRONTEND=noninteractive; | |
# Generate root mysql password | |
# rootmysqlpass=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev | tr -dc 'a-zA-Z0-9'`; |