Commit Graph
40 Commits
Author SHA1 Message Date
bachirandClaude 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
bachirandClaude 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 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 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 cdcb034b6b improved webhook install, mysql comment innodb_buffer_pool_size 2023-11-26 17:59:15 +01:00
bachir 8ecaf8d78a reverted php to 8.1, fixed nginx-badbots 2023-10-09 11:09:50 +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 d2380db06b misc 2023-03-31 11:16:46 +02:00
bachir 1272de1add updated php version 2021-11-08 15:53:04 +01: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 0b00728d66 added php7.3-apcu 2021-03-24 20:47:53 +01:00
bachir 37a8a031da git barerepos & redis warnings 2021-03-16 10:02:38 +01:00
bachir 4a8e1b3a4a updated drush-launcher path 2020-11-15 21:28:28 +01: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 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 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 b252c8c755 fixed sed bug" 2019-03-18 11:59:06 +01:00
bachir e79ca699cb changed knockd timeout, added php7.0-imagick to lemp 2019-01-21 16:15:55 +01:00
bachir 962017a84d redis install was not restarting php7-fpm 2018-10-29 15:47:03 +01:00
bachir 6d41024a76 better mysql config 2018-10-29 13:26:53 +01:00
bachir fff73f9e3d added urbackup and some todos 2018-10-16 15:34:15 +02:00
Bachir Soussi Chiadmi 540d964935 fixed assets path every where 2018-04-07 16:13:19 +02:00
Bachir Soussi Chiadmi 9b8670f4e4 added some color fixes, not finished 2018-04-07 12:59:00 +02:00
Bachir Soussi Chiadmi 6e5433b041 splitted vhost, added gitbarerepo creation 2018-04-07 12:27:55 +02:00
Bachir Soussi Chiadmi e15e231cc5 chmod +x bin/* 2018-04-07 11:34:55 +02:00
Bachir Soussi Chiadmi c1eefcd6fc added root check and needrestart check 2018-04-07 11:23:02 +02:00
Bachir Soussi Chiadmi 0e81a4ab11 splitted in subscripts, cleaned 2018-04-07 11:15:09 +02:00