diff --git a/scripts/gitearemove.sh b/scripts/gitearemove.sh index d95a59c..5a8e7c0 100644 --- a/scripts/gitearemove.sh +++ b/scripts/gitearemove.sh @@ -18,7 +18,7 @@ do done sudo systemctl stop gitea sudo systemctl disable gitea -rm -rf /etc/systemd/system/gitea.service +sudo rm -rf /etc/systemd/system/gitea.service sudo rm -rf /home/git sudo userdel git sudo rm -rf /usr/local/bin/gitea diff --git a/scripts/gitlabinstall.sh b/scripts/gitlabinstall.sh index 09608da..a96fe98 100644 --- a/scripts/gitlabinstall.sh +++ b/scripts/gitlabinstall.sh @@ -17,8 +17,7 @@ do esac done sudo apt update && apt upgrade -y -sudo apt install tzdata curl ca-certificates openssh-server -y -sudo apt-get install git -y +sudo apt install tzdata curl ca-certificates openssh-server git -y gpg_key_url="https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey" curl -fsSL $gpg_key_url| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/gitlab.gpg sudo tee /etc/apt/sources.list.d/gitlab_gitlab-ce.list<> /etc/apache2/apache2.conf sudo phpenmod mbstring sudo a2dismod php$PHP_VER @@ -48,7 +45,7 @@ sudo mkdir /usr/share/phpmyadmin/tmp/ && chmod -R 777 /usr/share/phpmyadmin/tmp/ sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-"$PMA_VER"-all-languages /usr/share/phpmyadmin/phpMyAdmin-"$PMA_VER"-all-languages.tar.gz ## Thanks https://stackoverflow.com/users/3266847/benjamin-w randomBlowfishSecret=$(openssl rand -base64 22) -sed -e "s|cfg\['blowfish_secret'\] = ''|cfg['blowfish_secret'] = '$randomBlowfishSecret'|" /usr/share/phpmyadmin/config.sample.inc.php > /usr/share/phpmyadmin/config.inc.php +sudo sed -e "s|cfg\['blowfish_secret'\] = ''|cfg['blowfish_secret'] = '$randomBlowfishSecret'|" /usr/share/phpmyadmin/config.sample.inc.php > /usr/share/phpmyadmin/config.inc.php sudo systemctl restart apache2 echo -e "==================================================================" publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org ) diff --git a/scripts/pmaupdate.sh b/scripts/pmaupdate.sh index 5004d57..c280a80 100644 --- a/scripts/pmaupdate.sh +++ b/scripts/pmaupdate.sh @@ -18,9 +18,8 @@ do done PHP_VER="8.2" sudo apt update && apt upgrade -y -sudo add-apt-repository --yes ppa:ondrej/php && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm -y +sudo add-apt-repository --yes ppa:ondrej/php && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl apache2 -y sudo systemctl stop apache2 -sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y sudo apt remove php8.1-fpm php8.1-* -y sudo phpenmod mbstring sudo a2dismod php$PHP_VER