run as root
This commit is contained in:
parent
8e4fc931a2
commit
8856797051
2 changed files with 3 additions and 5 deletions
|
|
@ -15,10 +15,6 @@
|
||||||
labels.app = "storage-combo";
|
labels.app = "storage-combo";
|
||||||
};
|
};
|
||||||
spec = {
|
spec = {
|
||||||
securityContext = {
|
|
||||||
runAsUser = 1000;
|
|
||||||
runAsGroup = 1000;
|
|
||||||
};
|
|
||||||
containers = [
|
containers = [
|
||||||
{
|
{
|
||||||
name = "storage-combo";
|
name = "storage-combo";
|
||||||
|
|
@ -39,6 +35,8 @@
|
||||||
securityContext = {
|
securityContext = {
|
||||||
capabilities.add = ["SYS_ADMIN"];
|
capabilities.add = ["SYS_ADMIN"];
|
||||||
privileged = true;
|
privileged = true;
|
||||||
|
runAsUser = 0;
|
||||||
|
runAsGroup = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ let
|
||||||
echo "[ Reverse port opened on $PORT ]"
|
echo "[ Reverse port opened on $PORT ]"
|
||||||
echo "[ Pushing local $LFolder to the remote $RFolder ]"
|
echo "[ Pushing local $LFolder to the remote $RFolder ]"
|
||||||
$SSHCMD null "if [[ ! -d $RFolder ]]; then mkdir -p $RFolder; fi"
|
$SSHCMD null "if [[ ! -d $RFolder ]]; then mkdir -p $RFolder; fi"
|
||||||
$SSHCMD null "sshfs -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $PORT localhost:$LFolder $RFolder"
|
$SSHCMD null "sshfs -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $PORT localhost:$LFolder $RFolder -o uid=1000 -o gid=1000 -o allow_other"
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue