apache user is no longer used on Debian.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 31 Jul 2023 00:29:30 +0300
changeset 29 74c62c0d1f64
parent 28 47f47ba80e8d
child 30 28471730dbf0
apache user is no longer used on Debian.
deb/apache-letsencrypt.bash
--- a/deb/apache-letsencrypt.bash	Mon Jul 31 00:21:56 2023 +0300
+++ b/deb/apache-letsencrypt.bash	Mon Jul 31 00:29:30 2023 +0300
@@ -1,12 +1,10 @@
 #!/bin/bash
 
 mkdir /srv/www/letsencrypt
-chown apache:apache /srv/www/letsencrypt
 
 # service apache2 stop
 # --standalone
-sudo -u apache \
- certbot certonly --webroot \
+certbot certonly --webroot \
  --agree-tos --non-interactive \
  -m gavenkoa@gmail.com \
  -w /srv/www/letsencrypt \