Skip to content

Commit 6faa833

Browse files
committed
BUGFIX mosquitto directory ownership issue caused modquitto not to start
1 parent 249bc76 commit 6faa833

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.templates/mosquitto/directoryfix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#check user 1883
66
if [ $(grep -c 'user: \"1883\"' ./services/mosquitto/service.yml) -eq 1 ]; then
77
echo "...found user 1883"
8+
sudo mkdir -p ./volumes/mosquitto/data/
9+
sudo mkdir -p ./volumes/mosquitto/log/
810
sudo chown -R 1883:1883 ./volumes/mosquitto/
911
fi
1012

.templates/postgres/terminal.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
echo 'Use the command "psql DATABASE USER" to enter your database, replace DATABASE and USER with your values'
4+
echo "Remember to end queries with a semicolon ;"
5+
6+
docker exec -it postgres bash

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ IOTstack is a builder for docker-compose to easily make and maintain IoT stacks
66

77
The bulk of the README has moved to the Wiki. Please check it out [here](https://github.com/gcgarner/IOTstack/wiki)
88

9+
* 2019-12-03 BUGFIX Mosquitto: Fixed issue where mosquitto failded to start as a result of 11-28 change
10+
* 2019-12-03 Added terminal for postgres, temporarily removed setfacl from menu
911
* 2019-11-28 PR @stfnhmplr added diyHue
1012
* 2019-11-28 Fixed update notification on menu
1113
* 2019-11-28 Fixed mosquitto logs and database not mapping correctly to volumes. Pull new template to fix
@@ -22,9 +24,6 @@ The bulk of the README has moved to the Wiki. Please check it out [here](https:/
2224
* Menu: Now remembers last stack selection, first build will be blank then the next will select your last containers
2325
* BUGFIX: fixed issue where rsync gave issue on 'Preserve Environment and Config files'
2426
* BUGFIX: I incorrecly changed mosquittos volume mapping and it caused the container to restart. Reverted to the old volume mapping
25-
* Added RTL_433 native and docker installs
26-
* Added update project through the menu
27-
* Added bash aliases for easier docker stop and start commands
2827

2928
***
3029

menu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ function yml_builder() {
129129
bash ./.templates/$1/directoryfix.sh
130130
fi
131131

132+
#make sure terminal.sh is executable
133+
[ -f ./services/$1/terminal.sh ] && chmod +x ./services/$1/terminal.sh
134+
132135
}
133136

134137
#---------------------------------------------------------------------------------------------------
@@ -228,7 +231,7 @@ case $mainmenu_selection in
228231
echo "services:" >>docker-compose.yml
229232

230233
#set the ACL for the stack
231-
docker_setfacl
234+
#docker_setfacl
232235

233236
# store last sellection
234237
[ -f ./services/selection.txt ] && rm ./services/selection.txt

0 commit comments

Comments
 (0)