install nfs and samba scripts

This commit is contained in:
wt
2024-10-09 22:30:18 +07:00
parent cc640cde1c
commit 79b05abed9
2 changed files with 25 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
if [ -f /etc/exports ]; then
printf "please create copy of your old config /etc/exports and delete file /etc/exports\n"
exit 1
fi
if [ ! -d ~/dotfiles ]; then
printf "please rename your directory of hyprland_dotfiles repository to ~/dotfiles\n"
exit 1
fi
sudo -E ln -sv ~/dotfiles/nfs/exports /etc/
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
if [ -f /etc/samba/smb.conf ]; then
printf "please create copy of your old config /etc/samba/smb.conf and delete file /etc/samba/smb.conf\n"
exit 1
fi
if [ ! -d ~/dotfiles ]; then
printf "please rename your directory of hyprland_dotfiles repository to ~/dotfiles\n"
exit 1
fi
sudo -E ln -sv ~/dotfiles/samba/smb.conf /etc/samba/