Skip to content

Commit c1482ab

Browse files
committed
Update gatewaysetup.sh
1 parent e23c878 commit c1482ab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.setup/gatewaysetup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ sudo mkdir $APPSRVDIR/data/db -p
110110
touch $APPSRVDIR/data/db/gateway.db
111111
touch $APPSRVDIR/data/db/gateway_nonmatches.db
112112

113-
#create uploads dir for user icons
114-
sudo mkdir $APPSRVDIR/www/images/uploads -p
115-
sudo chown -R www-data:pi $APPSRVDIR/www/images/uploads
116-
117113
#create self signed certificate
118114
#WARNING: must do this *AFTER* the gateway app was git-cloned
119115
echo -e "${CYAN}************* STEP: Create self signed HTTPS certificate (5 year) *************${NC}"
120116
sudo mkdir $APPSRVDIR/data/secure -p
121117
sudo openssl req -new -x509 -nodes -days 1825 -newkey rsa:2048 -out $APPSRVDIR/data/secure/server.crt -keyout $APPSRVDIR/data/secure/server.key -subj "/C=US/ST=MI/L=Detroit/O=LowPowerLab/OU=IoT Department/CN=lowpowerlab.com"
122118
sudo chown -R pi:pi $APPSRVDIR
123119

120+
#create uploads dir for user icons
121+
sudo mkdir $APPSRVDIR/www/images/uploads -p
122+
sudo chown -R www-data:pi $APPSRVDIR/www/images/uploads
123+
124124
#create HTTP AUTH credentials
125125
echo -e "${CYAN}************* STEP: Create HTTP AUTH credentials *************${NC}"
126126
HTTPUSER=$(whiptail --inputbox "\nEnter the Gateway http_auth username:" 8 78 "pi" --title "Gateway HTTP_AUTH Setup" --nocancel 3>&1 1>&2 2>&3)

0 commit comments

Comments
 (0)