mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
skip permissions
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bashio
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# SYMLINK CONFIG #
|
# SYMLINK CONFIG #
|
||||||
@@ -20,6 +20,8 @@ else
|
|||||||
echo "Using existing config"
|
echo "Using existing config"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R "$PUID:$PGID" /config/Library
|
# Adapt permissions if needed
|
||||||
chown -R "$PUID:$PGID" /share/plex
|
if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] && [ "${PGID:-0}" != "0" ]; then
|
||||||
chmod -R 777 /share/plex
|
chown -R "$PUID:$PGID" /share/plex
|
||||||
|
chmod -R 777 /share/plex
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user