prompt fix

This commit is contained in:
Marek Miklewicz
2025-03-30 21:51:51 +02:00
parent a30ce9eaaa
commit a27d8d8e9d
2 changed files with 52 additions and 8 deletions
+8 -8
View File
@@ -145,7 +145,11 @@ EOT
echo "Ustawienie kluczy logowania do DirectAdmina i kluczy SSH hitme"
daupdate klucze
daupdate keyput
if ! grep -q '^Match User root' /etc/ssh/sshd_config; then
daupdate keyput
fi
cd $DAPOSTINSTALL_DIR
echo "Instalacja Modsecurity i regułek malware experts"
@@ -605,19 +609,15 @@ $DADIR/plugins/redis_management/scripts/install.sh
cd $DAPOSTINSTALL_DIR
echo "Instalacja IMAPsync"
dnf -y install --enablerepo=powertools imapsync
dnf -y install imapsync
mkdir $DADIR/plugins/imapsync
tar -zxf imapsync.tar.gz -C $DADIR/plugins/imapsync
$DADIR/plugins/imapsync/scripts/install.sh
echo 'imapsync=type=checkbox&string=IMAPsync migrations (plugin)&desc=Allow access to imapsync migrations&default=yes' >> /usr/local/directadmin/data/admin/custom_package_items.conf
echo 'imapsync=ON' >> /usr/local/directadmin/data/users/admin/user.conf
cp lang_pl.php $DADIR/plugins/imapsync/lang
# echo "Dodanie kolorowego prompta hitme"
# echo "PS1='\[\e[0;1;38;5;46m\]\u\[\e[0m\]@\[\e[0;1;38;5;214m\]\h\[\e[0m\][\[\e[0;1;97m\]\W\[\e[0m\]]\[\e[0;38;5;46m\]$ \[\e[0m\]'" | sudo tee -a /etc/profile
# echo "dodanie kolorowego prompta dla roota"
# echo "PS1='\[\e[0;1;91m\]\u\[\e[0m\]@\[\e[0;1;38;5;214m\]\h\[\e[0m\][\[\e[0;1;97m\]\W\[\e[0m\]]\[\e[0;1m\]# \[\e[0m\]'" | sudo tee -a /root/.bash_profile
echo "instalacja promptów"
sh prompt.sh
echo "never_commands=custombuild:updates:license" >> /usr/local/directadmin/conf/directadmin.conf
systemctl restart directadmin