Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed May 12, 2024
1 parent f44ef37 commit 9f8924a
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions scripts/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
set -ouex pipefail

# pre-enabled services
systemctl enable cockpit.service
systemctl enable node-exporter.service
systemctl enable podman.socket
systemctl enable podman-exporter.service
# systemctl enable cockpit.service
# systemctl enable node-exporter.service
# systemctl enable podman.socket
# systemctl enable podman-exporter.service

if [[ -x "/usr/sbin/zpool" ]]; then
# ZFS
echo zfs > /etc/modules-load.d/zfs.conf
systemctl enable zrepl.service
if [ -x "/usr/sbin/zpool" ]; then
# ZFS
echo zfs >/etc/modules-load.d/zfs.conf
systemctl enable zrepl.service

# NFS
# firewall-cmd --permanent --zone=FedoraServer --add-service=nfs
# firewall-cmd --permanent --zone=FedoraServer --add-service=rpc-bind
# firewall-cmd --permanent --zone=FedoraServer --add-service=mountd
systemctl enable nfs-server.service
# NFS
# firewall-cmd --permanent --zone=FedoraServer --add-service=nfs
# firewall-cmd --permanent --zone=FedoraServer --add-service=rpc-bind
# firewall-cmd --permanent --zone=FedoraServer --add-service=mountd
systemctl enable nfs-server.service

# Samba
# firewall-cmd --permanent --zone=FedoraServer --add-service=samba
systemctl enable smb.service
# Samba
# firewall-cmd --permanent --zone=FedoraServer --add-service=samba
systemctl enable smb.service

# Firewall / SELinux
restorecon -R /mnt/vol1
# firewall-cmd --reload
semanage fcontext --add --type "public_content_rw_t" "/mnt/vol1(/.*)?"
fi
# Firewall / SELinux
restorecon -R /mnt/vol1
# firewall-cmd --reload
semanage fcontext --add --type "public_content_rw_t" "/mnt/vol1(/.*)?"
fi

0 comments on commit 9f8924a

Please sign in to comment.