File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,17 +110,17 @@ sudo mkdir $APPSRVDIR/data/db -p
110110touch $APPSRVDIR /data/db/gateway.db
111111touch $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
119115echo -e " ${CYAN} ************* STEP: Create self signed HTTPS certificate (5 year) *************${NC} "
120116sudo mkdir $APPSRVDIR /data/secure -p
121117sudo 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"
122118sudo 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
125125echo -e " ${CYAN} ************* STEP: Create HTTP AUTH credentials *************${NC} "
126126HTTPUSER=$( whiptail --inputbox " \nEnter the Gateway http_auth username:" 8 78 " pi" --title " Gateway HTTP_AUTH Setup" --nocancel 3>&1 1>&2 2>&3 )
You can’t perform that action at this time.
0 commit comments