bachir and Claude Sonnet 5
2e3ec7883f
Replace echo -e with printf for portable ANSI banners
...
dash (Debian's /bin/sh) doesn't support echo's -e flag: it prints "-e"
literally as text before processing the rest of the string's backslash
escapes. Every script's colored banner was affected. printf's escape
handling is POSIX-mandated and behaves identically under dash and bash,
so swap all 90 echo -e calls for printf, appending the trailing \n that
echo used to add implicitly.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-04 09:35:02 +02:00
bachir and Claude Sonnet 5
7ff4df1173
Fix installer bugs: broken root checks, PHP version mismatches, dead paths
...
- Replace $EUID with $(id -u) for root checks across all bin/*.sh and
install.sh: dash (Debian's /bin/sh) never sets $EUID, so the check was
silently broken everywhere.
- lemp.sh: make apt-get upgrade non-interactive (--yes), align the Redis
PHP module and php-fpm restart with $PHP_VERSION instead of a hardcoded
8.1, and template the nginx PHP-FPM socket path via a PHP_FPM_SOCK
placeholder substituted at install time.
- nginx-phpmyadmin.conf: fix docroot to match the actual phpMyAdmin
symlink location created by lemp.sh.
- mysql-db.sh: inline the root check instead of sourcing the
nonexistent bin/checkroot.sh.
- webhook.sh: fix chowm typo (chown).
- urbackup.sh: copy the systemd unit from assets/ instead of a relative
path to a file that doesn't exist in the repo.
- _addUserSite.sh: fix invalid `$var=value` assignment and an empty
if-block that was a POSIX sh syntax error.
Also carries over pending fixes to deploy-drupal.sh (drush now
invoked via vendor/bin/drush) and gitbarrerepos.sh (comment cleanup).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-04 09:28:08 +02:00
bachir
5b11d25859
changed dotfiles repos from gogs to gitea
2026-09-04 09:16:51 +02:00
bachir
d4cfa267de
deb13 & changed php version
2026-06-02 16:55:33 +02:00
bachir
207a05f75b
some updates
2025-03-13 21:43:02 +01:00
bachir
308b65e7be
drupal deploy git submodul init fix
2024-07-29 12:15:04 +02:00
bachir
6efc4fba23
lemp php8.1 fix, drupal deploy git submodul init fix
2024-07-29 12:06:35 +02:00
bachir
47b88ae300
lemp and gitbarerepos
2023-12-21 09:53:56 +01:00
bachir
8863d1ef79
updtaed urbackup client
2023-12-21 09:53:17 +01:00
bachir
f6cfa57db6
somme options on zabbix-agent install
2023-11-26 18:09:20 +01:00
bachir
cdcb034b6b
improved webhook install, mysql comment innodb_buffer_pool_size
2023-11-26 17:59:15 +01:00
bachir
62c03fc009
somme options on zabbix-agent install
2023-11-26 17:57:29 +01:00
bachir
015307986d
fixed webhook-deploy install
2023-11-20 15:39:06 +01:00
bachir
c409589eab
misc fixes
2023-11-19 11:04:50 +01:00
bachir
0cc2b94c7e
updated sshd config
2023-11-18 11:26:36 +01:00
bachir
de547cc2dd
Merge branch 'master' into deb12
2023-11-02 11:18:37 +01:00
bachir
a8ea6b53bc
zabbix bug fix
2023-10-17 21:46:38 +02:00
bachir
300402a38f
updated zabbix
2023-10-17 21:42:08 +02:00
bachir
fd9e202d49
updated zabbix
2023-10-17 21:39:30 +02:00
bachir
8ecaf8d78a
reverted php to 8.1, fixed nginx-badbots
2023-10-09 11:09:50 +02:00
bachir
2c3682bf4c
fixed gitbarrerepos bug
2023-07-01 12:12:06 +02:00
bachir
692584ff8a
fixed gitbarrerepos bug
2023-07-01 12:10:19 +02:00
bachir
5c163b3ea2
updated urbackup client version
2023-07-01 10:47:11 +02:00
bachir
cb915edc33
fixed php version on nginx conf files
2023-06-30 12:31:39 +02:00
bachir
00c9aa6cd2
updated php in lemp to php8.2
2023-06-30 12:22:52 +02:00
bachir
665aaabe48
updated php in lemp to php8.2
2023-06-30 12:19:53 +02:00
bachir
a96789a9ed
updated php in lemp to php8.2
2023-06-30 12:18:43 +02:00
bachir
f317ded417
updated php in lemp to php8.2
2023-06-30 12:17:04 +02:00
bachir
418f2e5583
deb12
2023-06-30 11:49:51 +02:00
bachir
4b3ccb3fff
added nginx-badbots fail2ban rule https://stackoverflow.com/a/65552146
2023-03-31 11:27:55 +02:00
bachir
d2380db06b
misc
2023-03-31 11:16:46 +02:00
bachir
af5d1b1404
fixed urbackup settings file path
2022-10-18 10:02:54 +02:00
bachir
3503f954be
urbackup is now using coming from source systemd service
2022-10-16 21:57:16 +02:00
bachir
d2e30fc62f
updated urbackup client
2022-10-16 21:33:29 +02:00
bachir
1272de1add
updated php version
2021-11-08 15:53:04 +01:00
bachir
443fb016bd
reset vars in vhost
2021-05-31 09:47:45 +02:00
bachir
e9f4ea86f5
webhook deploy fix
2021-05-18 15:29:06 +02:00
bachir
4554f1fa5a
webhook deploy fix
2021-05-18 14:37:00 +02:00
bachir
98ea6deeeb
webhook deploy fix
2021-05-18 14:35:19 +02:00
bachir
d69c6d778a
webhook deploy fix
2021-05-18 14:32:46 +02:00
bachir
b771dd27db
webhook deploy fix
2021-05-18 14:12:32 +02:00
bachir
df6255689e
webhook deploy fix
2021-05-18 14:07:33 +02:00
bachir
1163cd6ff0
webhook deploy fix
2021-05-18 14:04:31 +02:00
bachir
3a921226c0
webhook deploy fix
2021-05-18 14:02:08 +02:00
bachir
932d0a7d7f
webhook deploy install
2021-05-18 13:59:30 +02:00
bachir
0af76cdd60
webhook deploy install
2021-05-18 13:58:50 +02:00
bachir
198036de8d
fixed nginx conf
2021-05-18 11:49:33 +02:00
bachir
0b6f134691
added php7.4 install
2021-05-18 11:25:29 +02:00
bachir
d7cb0d32a4
added php7.4 install
2021-05-18 11:07:16 +02:00
bachir
591f67e6bc
mysql as option in lemp install
2021-05-18 10:52:02 +02:00
bachir
a79e147c3a
added php7.4 install
2021-05-18 10:48:24 +02:00
bachir
cecb09a12e
misc
2021-05-12 11:31:55 +02:00
bachir
918220ba07
postgresql backup
2021-04-29 15:37:36 +02:00
bachir
bec4a5ee3c
postgresql backup
2021-04-29 15:36:28 +02:00
bachir
5de5b48682
postgresql backup
2021-04-29 15:35:41 +02:00
bachir
fcfeda8999
started pgsql backup script
2021-04-29 14:43:46 +02:00
bachir
a8af6cff54
updated urbackup client to 2.4.11
2021-04-28 12:03:02 +02:00
bachir
0b00728d66
added php7.3-apcu
2021-03-24 20:47:53 +01:00
bachir
9040ba67e7
chmod +x mysql-db.sh
2021-03-17 12:01:43 +01:00
bachir
37a8a031da
git barerepos & redis warnings
2021-03-16 10:02:38 +01:00
bachir
a96979f219
added ipv6 support to vhosts
2020-12-14 16:34:41 +01:00
bachir
ea3a702235
added mysql db creation script
2020-11-15 21:29:09 +01:00
bachir
4a8e1b3a4a
updated drush-launcher path
2020-11-15 21:28:28 +01:00
bachir
8190ca5ab2
updated urbackup client
2020-04-18 11:37:55 +02:00
bachir
21d9c2ee0d
updated urbackup client
2020-04-18 11:32:19 +02:00
bachir
3546724fbc
improved vhost
2020-03-30 12:37:46 +02:00
bachir
a6c0ccdd17
fixed redis install
2020-03-30 12:07:20 +02:00
bachir
6fd0b7c443
fixed phpmyadmin install (not secured yet
2020-03-30 12:07:00 +02:00
bachir
9f2c10519e
fix small echo
2020-03-27 18:28:19 +01:00
bachir
eab2c83c2d
updated urbackup client
2020-01-13 18:35:58 +01:00
bachir
783afc1a3b
exim4 fix, zabbix update
2020-01-13 16:59:27 +01:00
bachir
9b3ba02e1d
updated nginx conf to php7.3-fpm
2019-10-22 09:46:14 +02:00
bachir
8c44da8785
fixed lemp php7.3 install
2019-10-21 17:11:57 +02:00
bachir
0c779980b0
fixed --yesinstall typo
2019-10-21 16:14:48 +02:00
bachir
cf8fd6a008
reverted for bash shell
2019-10-21 16:12:37 +02:00
bachir
faabe5d622
reverted for bash shell
2019-10-21 16:11:31 +02:00
bachir
9225ca2f4b
reverted for bash shell
2019-10-21 16:10:05 +02:00
bachir
67b84ed088
some updates for buster
2019-10-21 16:00:06 +02:00
bachir
4ce386eeed
updated readme
2019-10-21 15:10:57 +02:00
bachir
caf3d0e1f7
todo on knockd
2019-10-21 15:05:42 +02:00
bachir
84691bb6d5
fix fail2ban
2019-06-12 15:24:07 +02:00
bachir
934874b297
changed nginx X-Frame-Option to SAMEORIGIN
2019-04-29 13:07:14 +02:00
bachir
b252c8c755
fixed sed bug"
2019-03-18 11:59:06 +01:00
bachir
3eb1a34c19
zabbix disabling rsync & timesyncd systemd units
2019-01-23 13:14:18 +01:00
bachir
ad10f722ea
changed rolling time in mysqlbackups
2019-01-23 13:13:28 +01:00
bachir
d8fe6562ae
konckd allowing ssh without ip restriction as it would not work with 4g connection
2019-01-23 13:12:25 +01:00
bachir
1eaabe41cd
using find's -delete option, it's safer
2019-01-22 12:56:03 +01:00
bachir
0842f3f99e
removed folder compression, added rotation to mysqlbackups
2019-01-22 12:53:27 +01:00
bachir
97ee1ffbb9
compressing the mysql backup folders
2019-01-22 12:43:37 +01:00
bachir
1df4d6a72f
added zabbix systemd units template
2019-01-22 12:42:54 +01:00
bachir
f3e16903fe
added unzip to misc
2019-01-21 16:16:47 +01:00
bachir
e79ca699cb
changed knockd timeout, added php7.0-imagick to lemp
2019-01-21 16:15:55 +01:00
bachir
db2fcd1f6d
updated urbackup client, added systemd monitoring
2019-01-21 16:14:09 +01:00
bachir
69ca0e3f9a
added lynx to misc
2018-10-29 16:38:18 +01:00
bachir
10f038f0dc
fixed zabbix nginx status install
2018-10-29 16:38:01 +01:00
bachir
3bc0ee06ee
applyed patch to knockd to be enableable
...
patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868015
2018-10-29 16:12:09 +01:00
bachir
adfe0d6232
added htop on misc
2018-10-29 15:47:27 +01:00
bachir
962017a84d
redis install was not restarting php7-fpm
2018-10-29 15:47:03 +01:00
bachir
b9d8d77d3a
misc
2018-10-29 15:20:43 +01:00
bachir
6d41024a76
better mysql config
2018-10-29 13:26:53 +01:00