Merge branch 'master' of https://git.johnhgaunt.com/jgaunt/homelab-scripts
This commit is contained in:
@@ -34,14 +34,25 @@ elif [ "${OS}" == "CentOS" ]; then
|
|||||||
echo ${password} | realm join --user=${username} --computer-ou=OU=Servers ${domain}
|
echo ${password} | realm join --user=${username} --computer-ou=OU=Servers ${domain}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Get hostname
|
||||||
|
hostname=$(hostnamectl | awk '/Static hostname:/ {print $3}')
|
||||||
|
|
||||||
# set the sssd options
|
# set the sssd options for our domain
|
||||||
# don't require the full domain for the usernames
|
cat <<EOF > "/etc/sssd/conf.d/${netbiosname}.conf"
|
||||||
sed --in-place 's/^use_fully_qualified_names = True/use_fully_qualified_names = False/' /etc/sssd/sssd.conf
|
[domain/${domain}]
|
||||||
# set home directory to /home/<username>
|
use_fully_qualified_names = False
|
||||||
sed --in-place 's/^fallback_homedir = \/home\/%u@%d/fallback_homedir = \/home\/%u/' /etc/sssd/sssd.conf
|
fallback_homedir = /home/%u
|
||||||
# change the provider to simple and then only allow the server admins to login
|
access_provider = simple
|
||||||
sed --in-place 's/^access_provider = ad/access_provider = simple\nsimple_allow_groups = Server Admins/' /etc/sssd/sssd.conf
|
simple_allow_groups = Domain Admins, Server Admins
|
||||||
|
ad_hostname = ${hostname}.${domain}
|
||||||
|
dyndns_update = true
|
||||||
|
dyndns_refresh_interval = 43200
|
||||||
|
dyndns_update_ptr = true
|
||||||
|
dyndns_ttl = 3600
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# make sure the permissions are correct
|
||||||
|
chmod 600 "/etc/sssd/conf.d/${netbiosname}.conf"
|
||||||
|
|
||||||
# reboot sssd
|
# reboot sssd
|
||||||
systemctl restart sssd
|
systemctl restart sssd
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ readarr-ebooks () {
|
|||||||
-e TZ=America/New_York \
|
-e TZ=America/New_York \
|
||||||
-p 8787:8787 \
|
-p 8787:8787 \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
lscr.io/linuxserver/readarr:develop
|
binhex/arch-readarr
|
||||||
docker start readarr-ebooks
|
docker start readarr-ebooks
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ readarr-audiobooks () {
|
|||||||
-e TZ=America/New_York \
|
-e TZ=America/New_York \
|
||||||
-p 8788:8787 \
|
-p 8788:8787 \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
lscr.io/linuxserver/readarr:develop
|
binhex/arch-readarr
|
||||||
docker start readarr-audiobooks
|
docker start readarr-audiobooks
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,4 +282,21 @@ wizarr () {
|
|||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
ghcr.io/wizarrrr/wizarr
|
ghcr.io/wizarrrr/wizarr
|
||||||
docker start wizarr
|
docker start wizarr
|
||||||
|
}
|
||||||
|
|
||||||
|
lazylibrarian () {
|
||||||
|
docker stop lazylibrarian
|
||||||
|
docker rm lazylibrarian
|
||||||
|
docker create \
|
||||||
|
--name=lazylibrarian \
|
||||||
|
-e PUID=1000 \
|
||||||
|
-e PGID=1000 \
|
||||||
|
-e TTZ=America/New_York \
|
||||||
|
-p 5299:5299 \
|
||||||
|
-v /etc/docker/config/lazylibrarian:/config \
|
||||||
|
-v /media/downloads:/downloads \
|
||||||
|
-v /mnt/media/audiobooks:/books \
|
||||||
|
--restart unless-stopped \
|
||||||
|
lscr.io/linuxserver/lazylibrarian:latest
|
||||||
|
docker start lazylibrarian
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user