#!/bin/bash

chmod 755 /root
chmod 755 /root/bin-AOI
chmod 755 /root/bin-AOI/alarmimage

mkdir -p /root/bin-AOI/samba_deb
tar -xvf samba_deb.tar -C /root/bin-AOI/samba_deb
cd /root/bin-AOI/samba_deb
dpkg -i *

cd /root/bin-AOI/
rm -rf /root/bin-AOI/samba_deb

mv smb.conf /etc/samba/smb.conf
systemctl enable smbd nmbd
/etc/init.d/smbd restart



