mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
Add /usr/share/post-upgrade/20200127.sh
This commit is contained in:
parent
a8f140575c
commit
944a411df5
9
board/common/overlay/usr/share/post-upgrade/20200127.sh
Executable file
9
board/common/overlay/usr/share/post-upgrade/20200127.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SSH config files and keys have been moved from /data/etc/ to /data/etc/ssh
|
||||
mkdir -p /data/etc/ssh
|
||||
test -f /data/etc/ssh_authorized_keys && mv /data/etc/ssh_authorized_keys /data/etc/ssh/authorized_keys
|
||||
test -f /data/etc/sshd_config && mv /data/etc/sshd_config /data/ssh/etc
|
||||
test -f /data/etc/sshd_id_rsa && mv /data/etc/ssh_id_rsa /data/ssh/etc
|
||||
test -f /data/etc/sshd_id_rsa.pub && mv /data/etc/ssh_id_rsa.pub /data/ssh/etc
|
||||
mv /data/etc/ssh_host* /data/etc/ssh
|
Loading…
x
Reference in New Issue
Block a user