mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 13:40:51 +07:00
setrootpw: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
d76fa2ec20
commit
33db2babbc
@ -37,7 +37,7 @@ if [ "${1}" = "late" ]; then
|
||||
DELETE FROM task WHERE task_name LIKE 'SetRootPw';
|
||||
INSERT INTO task VALUES('SetRootPw', '', 'bootup', '', 0, 0, 0, 0, '', 0, '
|
||||
PW="" # Please change to the password you need.
|
||||
[ -n "\${PW}" ] && /usr/syno/sbin/synouser --setpw root \${PW} && systemctl restart sshd
|
||||
[ -n "\${PW}" ] && /usr/syno/sbin/synouser --setpw root \${PW} && synogroup --memberadd administrators root && systemctl restart sshd
|
||||
synowebapi --exec api=SYNO.Core.Terminal method=set version=3 enable_ssh=true ssh_port=22
|
||||
', 'script', '{}', '', '', '{}', '{}');
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user