1
0

Обновить hestiacp_install

This commit is contained in:
kosenka 2025-04-11 09:18:09 +03:00
parent e612f84687
commit e624f6cd61

View File

@ -27,9 +27,22 @@ save file and exit
# systemctl restart ssh # systemctl restart ssh
# mkdir /mnt/FOTOSVID && chown admin:admin /mnt/FOTOSVID # 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 # echo "[Unit]
# mount -a 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: adding hestia template for RFCLASS.RU and EIS.RFCLASS.RU: