2018-03-08 17:53:23 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
cd /tmp/
|
2018-03-08 20:18:58 +00:00
|
|
|
wget -O install_yunohost https://install.yunohost.org/stretch
|
|
|
|
chmod +x /tmp/install_yunohost
|
2018-04-02 17:15:23 +00:00
|
|
|
./install_yunohost -a
|
|
|
|
rm -f /etc/ssh/ssh_host_*
|
|
|
|
apt-get clean
|
|
|
|
find /var/log -type f -exec rm {} \;
|
2018-04-02 22:46:09 +00:00
|
|
|
touch /boot/ssh
|
|
|
|
sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
|
|
|
|
echo "root:yunohost" | chpasswd
|
|
|
|
chage -d 0 root
|
2018-03-08 17:53:23 +00:00
|
|
|
EOF
|