quietly change permissions on the command file
(allows both accounts to do modifications)
This commit is contained in:
parent
e177bedd69
commit
79098d7e62
2 changed files with 4 additions and 2 deletions
2
shell.sh
2
shell.sh
|
@ -6,6 +6,8 @@
|
|||
# command="/home/automation/chch-power/shell.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAA...
|
||||
|
||||
COMMAND_FILE=/tmp/command
|
||||
touch $COMMAND_FILE
|
||||
chmod -f 666 $COMMAND_FILE
|
||||
|
||||
status() {
|
||||
STATUS="$(cat /tmp/status)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue