mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 00-folders.sh
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
CONFIGSOURCE="/config/addons_config/omada_v3"
|
||||
CONFIGSOURCE="/data"
|
||||
|
||||
# Create directory
|
||||
if [ ! -d "$CONFIGSOURCE" ]; then
|
||||
@@ -12,8 +12,6 @@ fi
|
||||
# Ensure structure is correct
|
||||
cp -rnf /opt/tplink/EAPController/data/* "$CONFIGSOURCE"
|
||||
|
||||
|
||||
|
||||
echo "Creating symlink"
|
||||
rm -r /opt/tplink/EAPController/data/*
|
||||
|
||||
@@ -31,4 +29,5 @@ ln -s "$CONFIGSOURCE"/portal /opt/tplink/EAPController/data
|
||||
|
||||
# Make sure permissions are right
|
||||
echo "Updating permissions"
|
||||
chmod -R 777 "$CONFIGSOURCE"
|
||||
chown -R "508:508" "$CONFIGSOURCE"
|
||||
|
||||
Reference in New Issue
Block a user