Update dapostinstall.sh
This commit is contained in:
+8
-2
@@ -4,7 +4,7 @@ DAPOSTINSTALL_DIR=/opt/dapostinstall
|
|||||||
DADIR=/usr/local/directadmin
|
DADIR=/usr/local/directadmin
|
||||||
CBDIR=/usr/local/directadmin/custombuild
|
CBDIR=/usr/local/directadmin/custombuild
|
||||||
DAPOSTINSTALL_LOG=/var/log/dapostinstall.log
|
DAPOSTINSTALL_LOG=/var/log/dapostinstall.log
|
||||||
exec > >(tee -ia "$log_file") 2>&1
|
exec >(tee -ia "$log_file") 2>&1
|
||||||
HTLINK="https://ht.zenadmin.pl"
|
HTLINK="https://ht.zenadmin.pl"
|
||||||
cd $DAPOSTINSTALL_DIR
|
cd $DAPOSTINSTALL_DIR
|
||||||
wget $HTLINK//daupdate.sh -O /opt/daupdate.sh
|
wget $HTLINK//daupdate.sh -O /opt/daupdate.sh
|
||||||
@@ -556,8 +556,14 @@ $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=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
|
echo 'imapsync=ON' >> /usr/local/directadmin/data/users/admin/user.conf
|
||||||
cp lang_pl.php $DADIR/plugins/imapsync/lang
|
cp lang_pl.php $DADIR/plugins/imapsync/lang
|
||||||
cd $DAPOSTINSTALL_DIR
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
cd $DAPOSTINSTALL_DIR
|
||||||
sh da_cli.sh disablenamed
|
sh da_cli.sh disablenamed
|
||||||
sh da_cli.sh disablemultiserverpage
|
sh da_cli.sh disablemultiserverpage
|
||||||
sh da_cli.sh disablecreateadmin
|
sh da_cli.sh disablecreateadmin
|
||||||
|
|||||||
Reference in New Issue
Block a user