Ignore:
Timestamp:
Feb 14, 2022, 12:51:17 PM (4 years ago)
Author:
obi
Message:

fix last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_samba/CONTROL/postinst

    r45683 r45684  
    66export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/swap/lib:/mnt/swapextensions/lib:/var/lib
    77
    8 if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
     8if [ -f /mnt/config/start-config ]; then
    99        echo "enable samba autostart on /mnt/config/start-config"
    1010        sed s#"sambaserver=n"#"sambaserver=y"#g -i /mnt/config/start-config
     
    1212
    1313echo "if not exist, use restore smb.conf"
    14 if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
     14if [ ! -e /mnt/config/smb.conf ]; then
    1515        cp /etc/titan.restore/mnt/config/smb.conf /mnt/config/smb.conf
    1616fi
    1717
    1818echo "check if smbpasswd exists"
    19 if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
     19if [ ! -e $INSTDIR/etc/samba/private/smbpasswd ]; then
    2020        touch $INSTDIR/etc/samba/private/smbpasswd
    2121fi
    2222
    2323echo "check if secrets.tdb exists"
    24 if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
     24if [ ! -e $INSTDIR/etc/samba/private/secrets.tdb ]; then
    2525        touch $INSTDIR/etc/samba/private/secrets.tdb
    2626fi
Note: See TracChangeset for help on using the changeset viewer.