mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Delete 10-adduser.sh
This commit is contained in:
@@ -1,44 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
# shellcheck shell=bash
|
|
||||||
|
|
||||||
PUID=$(bashio::config "PUID")
|
|
||||||
PGID=$(bashio::config "PGID")
|
|
||||||
datadirectory=$(bashio::config 'data_directory')
|
|
||||||
|
|
||||||
groupmod -o -g "$PGID" abc
|
|
||||||
usermod -o -u "$PUID" abc
|
|
||||||
mkdir -p /data/config
|
|
||||||
mkdir -p "$datadirectory"
|
|
||||||
echo '
|
|
||||||
-------------------------------------
|
|
||||||
_ ()
|
|
||||||
| | ___ _ __
|
|
||||||
| | / __| | | / \
|
|
||||||
| | \__ \ | | | () |
|
|
||||||
|_| |___/ |_| \__/
|
|
||||||
|
|
||||||
|
|
||||||
Brought to you by linuxserver.io
|
|
||||||
-------------------------------------'
|
|
||||||
if [[ -f /donate.txt ]]; then
|
|
||||||
echo '
|
|
||||||
To support the app dev(s) visit:'
|
|
||||||
cat /donate.txt
|
|
||||||
fi
|
|
||||||
echo '
|
|
||||||
To support LSIO projects visit:
|
|
||||||
https://www.linuxserver.io/donate/
|
|
||||||
-------------------------------------
|
|
||||||
GID/UID
|
|
||||||
-------------------------------------'
|
|
||||||
echo "
|
|
||||||
User uid: $(id -u abc)
|
|
||||||
User gid: $(id -g abc)
|
|
||||||
-------------------------------------
|
|
||||||
"
|
|
||||||
chown abc:abc /app
|
|
||||||
chown abc:abc /data/config
|
|
||||||
chown abc:abc /defaults
|
|
||||||
|
|
||||||
rm /config/nginx/site-confs/default 2>/dev/null || true
|
|
||||||
rm /data/config/nginx/nginx.conf || true
|
|
||||||
Reference in New Issue
Block a user