diff --git a/bin/export.bash b/bin/export.bash index 577d676..6bd6308 100755 --- a/bin/export.bash +++ b/bin/export.bash @@ -24,8 +24,14 @@ function export_files { tar -C / -cf "$temp_dir/files.tar" etc/sympa/sympa/sympa.conf tar -C / -uf "$temp_dir/files.tar" etc/sympa/data_structure.version tar -C / -uf "$temp_dir/files.tar" etc/sympa/auth.conf + tar -C / -uf "$temp_dir/files.tar" var/lib/sympa tar -C / -uf "$temp_dir/files.tar" var/spool/sympa + + tar -C / -uf "$temp_dir/files.tar" etc/postfix/main.cf + tar -C / -uf "$temp_dir/files.tar" etc/dkimkeys/mail.private + tar -C / -uf "$temp_dir/files.tar" etc/letsencrypt + gzip "$temp_dir/files.tar" } diff --git a/bin/import.bash b/bin/import.bash index bebac5a..048309a 100755 --- a/bin/import.bash +++ b/bin/import.bash @@ -63,16 +63,23 @@ function import_files_etc { replace_conf_entry_from_export lang } -function import_files_lib { +function import_files_sympa_lib { rm -rf /var/lib/sympa mv var/lib/sympa /var/lib } -function import_files_spool { +function import_files_sympa_spool { rm -rf /var/spool/sympa mv var/spool/sympa /var/spool } +function import_files_postfix { + mv etc/postfix/main.cf /etc/postfix/ + mv etc/dkimkeys/mail.private /etc/dkimkeys/ + + rm -rf /etc/letsencrypt + mv etc/letsencrypt /etc +} function import_files { echo -n "import files..." @@ -82,8 +89,9 @@ function import_files { tar -xf "$export_tmp/files.tar.gz" import_files_etc - import_files_lib - import_files_spool + import_files_sympa_lib + import_files_sympa_spool + import_files_postfix echo OK } diff --git a/debian/install.bash b/debian/install.bash index ed622cc..507c1a7 100755 --- a/debian/install.bash +++ b/debian/install.bash @@ -5,4 +5,6 @@ # execute as root or use `sudo` [[ $(id -u) != 0 ]] && exec sudo $(dirname "$0")/$(basename "$0") -echo TODO... \ No newline at end of file +apt install -y postfix postgresql nginx fcgiwrap perl-doc certbot + +echo TO BE continued... \ No newline at end of file