Fixed names, enabled debugging.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/apache-register-2048.bash Sun May 07 00:19:55 2023 +0300
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -x
+
+# To meet uploading requirements.
+apt install rsync
+
+d=2048
+mkdir -p /srv/www/$d
+chown user:user /srv/www/$d
+
+cat <<EOF >/etc/apache2/sites-available/92-$d.conf
+<VirtualHost $d.defun.work:*>
+ DocumentRoot /srv/www/$d
+</VirtualHost>
+EOF
+
+a2ensite $d
+service apache2 restart
--- a/deb/apache-resiter-2048.bash Sun May 07 00:15:28 2023 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-apt install rsync
-
-d=2048
-mkdir -p /srv/www/$d
-chown user:user /srv/www/$d
-
-cat <<EOF >/etc/apache2/sites-available/92-$d.conf
-<VirtualHost $d.defun.work:*>
- DocumentRoot /srv/www/$d
-EOF
-
-a2ensite $d
-service apache2 restart