mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-21 08:11:50 +02:00
Create 00-folders.sh
https://github.com/alexbelgium/hassio-addons/issues/333
This commit is contained in:
9
resiliosync/rootfs/etc/cont-init.d/00-folders.sh
Normal file
9
resiliosync/rootfs/etc/cont-init.d/00-folders.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Checking folders"
|
||||||
|
PATH="/share/resiliosync"
|
||||||
|
mkdir -p "$PATH"/folders
|
||||||
|
mkdir -p "$PATH"/mounted_folders
|
||||||
|
|
||||||
|
echo "Checking permissions"
|
||||||
|
chown -R "$(id -u):$(id -g)" "$PATH"
|
||||||
Reference in New Issue
Block a user