updated sp.sh
This commit is contained in:
parent
a83cf2a711
commit
a546a061af
@ -282,23 +282,6 @@ echo "free:a" | chpasswd -c SHA512
|
|||||||
sudo -u free flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sudo -u free flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak update
|
flatpak update
|
||||||
|
|
||||||
#
|
|
||||||
|
|
||||||
mkdir /root/.ssh
|
|
||||||
|
|
||||||
mkdir -p /home/free/.ssh
|
|
||||||
|
|
||||||
touch /root/.ssh/authorized_keys
|
|
||||||
|
|
||||||
sudo -u free ssh-keygen -q -N "gosovransystems" -t ed25519 -f /home/free/.ssh/factory_login
|
|
||||||
|
|
||||||
echo "$(cat /home/free/.ssh/factory_login.pub)" >> /root/.ssh/authorized_keys
|
|
||||||
|
|
||||||
chown free:users /home/free/.ssh -R
|
|
||||||
|
|
||||||
chmod 700 /home/free/.ssh -R
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
rm -rf /root/sp.sh
|
rm -rf /root/sp.sh
|
||||||
@ -347,7 +330,6 @@ popd
|
|||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
mkdir -p /home/free/Pictures
|
mkdir -p /home/free/Pictures
|
||||||
|
|
||||||
pushd /home/free/Downloads
|
pushd /home/free/Downloads
|
||||||
@ -361,6 +343,29 @@ pushd /home/free/Downloads
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
wp=$(cat /var/lib/secrets/wordpressdb)
|
||||||
|
|
||||||
|
sudo mysql -u root -e "SET PASSWORD FOR wpusr@localhost = PASSWORD('${wp}')";
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
|
mkdir /root/.ssh
|
||||||
|
|
||||||
|
mkdir -p /home/free/.ssh
|
||||||
|
|
||||||
|
touch /root/.ssh/authorized_keys
|
||||||
|
|
||||||
|
sudo -u free ssh-keygen -q -N "gosovransystems" -t ed25519 -f /home/free/.ssh/factory_login
|
||||||
|
|
||||||
|
echo "$(cat /home/free/.ssh/factory_login.pub)" >> /root/.ssh/authorized_keys
|
||||||
|
|
||||||
|
chown free:users /home/free/.ssh -R
|
||||||
|
|
||||||
|
chmod 700 /home/free/.ssh -R
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
sudo matrix-synapse-register_new_matrix_user -u admin -p a -a
|
sudo matrix-synapse-register_new_matrix_user -u admin -p a -a
|
||||||
|
|
||||||
sudo echo "no" | matrix-synapse-register_new_matrix_user -u test -p a
|
sudo echo "no" | matrix-synapse-register_new_matrix_user -u test -p a
|
||||||
|
Loading…
Reference in New Issue
Block a user