Skip to content

Commit 1936989

Browse files
author
Slyke
committed
Create default directories on build
1 parent e95298f commit 1936989

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.templates/transmission/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# create directories for named volumes
4+
TRANSMISSION_BASEDIR=.volumes/transmission
5+
mkdir -p $TRANSMISSION_BASEDIR/downloads
6+
mkdir -p $TRANSMISSION_BASEDIR/watch
7+
mkdir -p $TRANSMISSION_BASEDIR/config

.templates/transmission/volumes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
driver_opts:
55
o: bind
66
type: none
7-
device: /home/${USER}/IOTstack/.volumes/transmission/downloads
7+
device: .volumes/transmission/downloads
88

99
transm_watch_volume:
1010
driver: local
1111
driver_opts:
1212
o: bind
1313
type: none
14-
device: /home/${USER}/IOTstack/.volumes/transmission/watch
14+
device: .volumes/transmission/watch
1515

1616
transm_config_volume:
1717
driver: local
1818
driver_opts:
1919
o: bind
2020
type: none
21-
device: /home/${USER}/IOTstack/.volumes/transmission/config
21+
device: .volumes/transmission/config

0 commit comments

Comments
 (0)