vex2: script .. mkdir log in case of empty data dir
authorBernhard Tittelbach <bernhard@tittelbach.org>
Sun, 9 Nov 2025 09:35:42 +0000 (10:35 +0100)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Sun, 9 Nov 2025 09:35:42 +0000 (10:35 +0100)
ansible/roles/web/dokuwiki/files/transfer_dokuwiki_vex1_data_to_vex2.sh

index 491b918..953d50e 100755 (executable)
@@ -4,6 +4,9 @@ ssh-add ~/.ssh/id-rsa
 echo ""
 echo "=========== Rsyncing Dokuwiki Data from vex  ======================================"
 rsync -e 'ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1' -v -r --size-only --chown dokuwiki:dokuwiki vex.realraum.at:/var/www/dokuwiki/data/ /srv/dokuwiki/data/
+mkdir -p /srv/dokuwiki/data/log/error
+chown dokuwiki:dokuwiki -R /srv/dokuwiki/data/log
+
 echo ""
 echo "=========== Rsyncing Dokuwiki ACL+Users from vex  ======================================"
 rsync -e 'ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1' -v -r --size-only --chown dokuwiki:dokuwiki vex.realraum.at:/var/www/dokuwiki/conf/acl.auth.php vex.realraum.at:/var/www/dokuwiki/conf/users.auth.php /srv/dokuwiki/acl/