Skip to content

Commit

Permalink
add message to inform sudo is not available in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Apr 4, 2022
1 parent fc5dba0 commit 1d1ad12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

alias sudo='echo "ERROR: sudo / root access is not allowed by the homebridge service account. See https://kb.synology.com/en-id/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet" # '
3 changes: 3 additions & 0 deletions app/source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ export npm_config_audit=false
export npm_config_fund=false

export HOMEBRIDGE_SYNOLOGY_PACKAGE=1

# copy .bashrc to service user home
cp /var/packages/homebridge/target/app/.bashrc /var/packages/homebridge/home/

0 comments on commit 1d1ad12

Please sign in to comment.