Skip to content

Commit

Permalink
✨ 파일 권한 ACL 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanghyeondong committed Jul 11, 2024
1 parent 8beb270 commit f989736
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 6 additions & 3 deletions k8s/install_k3s_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ LINE="===================="
# install nfs
echo "${LINE} Install nfs... ${LINE}"
read -p "Enter the nfs address: " mynfs
sudo apt install -y nfs-common >> install.log
sudo apt install -y nfs-common >> install.log 2>&1
sudo apt install -y acl >> install.log 2>&1
sudo mkdir -p /dev-room >> install.log
sudo mount ${mynfs} /dev-room >> install.log
sudo chmod 777 /dev-room
sudo mount ${mynfs} /dev-room >> install.log
current_user=$(whoami)
sudo setfacl -R -d -m u:$current_user:rwx /dev-room
ls -al /dev-room

read -p "Enter the K3S server address: " myserver
read -p "Enter the K3S node token: " mynodetoken
Expand Down
7 changes: 5 additions & 2 deletions k8s/install_k3s_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ VM 인스턴스 : devroom-k3s-01

LINE="===================="


# install nfs
echo "${LINE} Install nfs... ${LINE}"
read -p "Enter the nfs address: " mynfs
sudo apt install -y nfs-common > install.log 2>&1
sudo apt install -y nfs-common >> install.log 2>&1
sudo apt install -y acl >> install.log 2>&1
sudo mkdir -p /dev-room >> install.log
sudo mount ${mynfs} /dev-room >> install.log
sudo chmod -R 777 /dev-room >> install.log
current_user=$(whoami)
sudo setfacl -R -d -m u:$current_user:rwx /dev-room
ls -al /dev-room

# install k8s
Expand Down

0 comments on commit f989736

Please sign in to comment.