-if [ "${init_state}" = "new" ]; then
- su -lc "mkdir ${dump_dir} ${geheim_dir}" plom
- password_geheim=$(pwgen -1)
- echo "foo:{PLAIN}${password_geheim}" > /var/www-dump/password_geheim
- echo "geheim password is: ${password_geheim}"
-else
- cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
- su -lc "./mirror_dir.sh ${old_server} /home/plom/${dump_dir}" plom
- su -lc "./mirror_dir.sh ${old_server} /home/plom/${geheim_dir}" plom
- su -lc "scp plom@${old_server}:/var/www-dump/password_geheim ~" plom
- mv /home/plom/password_geheim /var/www-dump/password_geheim
- rm /home/plom/mirror_dir.sh
-fi
+cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
+su -lc "./mirror_dir.sh ${old_server} /home/plom/${dump_dir}" plom
+su -lc "./mirror_dir.sh ${old_server} /home/plom/${geheim_dir}" plom
+su -lc "scp plom@${old_server}:/var/www-dump/password_geheim ~" plom
+mv /home/plom/password_geheim /var/www-dump/password_geheim
+rm /home/plom/mirror_dir.sh