diff --git a/hestiacp_install b/hestiacp_install index 63f5bce..e18681e 100644 --- a/hestiacp_install +++ b/hestiacp_install @@ -27,9 +27,22 @@ save file and exit # systemctl restart ssh # mkdir /mnt/FOTOSVID && chown admin:admin /mnt/FOTOSVID -# echo "//10.77.1.250/fotosvid /mnt/FOTOSVID cifs vers=3.0,username=fotosvid,password=$PASSWORD,gid=1001,uid=1001,iocharset=utf8,rw,file_mode=0644,dir_mode=0755 0 0" >> /etc/fstab -# mount -a +# echo "[Unit] +Description=Mount SMB share +After=network.target +Wants=network.target +[Service] +Type=oneshot +ExecStartPre=sleep 15 +ExecStart=/bin/mount -t cifs //10.77.1.250/FOTOSVID /mnt/FOTOSVID -o username=fotosvid,password=$PASSWORD,rw,file_mode=0666,dir_mode=0777 + +[Install] +WantedBy=multi-user.target +" > /etc/systemd/system/mnt-fotosvid.service + +# systemctl daemon-reload +# systemctl enable mnt-fotosvid.service && systemctl start mnt-fotosvid.service adding hestia template for RFCLASS.RU and EIS.RFCLASS.RU: