aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/sync-tpc9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index 09c4adc..31a29ae 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -57,5 +57,14 @@ if [ -d "/etc/wicd" ]; then
$SUDO cp -a /etc/wicd/wireless-settings.conf $DEST/etc/wicd/wireless-settings.conf
fi
+# Ensure the media folder exist
+if [ ! -d "$MEDIA" ]; then
+ $SUDO mkdir -p $MEDIA
+
+ if [ "$USER" != 'root' ]; then
+ $SUDO chown $USER.$USER $MEDIA
+ fi
+fi
+
# Sync media remotes
hydractl sync-media-remotes $MEDIA