Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/remoteinstall

    rf49e71c rc5c522c  
    5151                echo "Uploading and installing"
    5252                if scp $OPTS $PKG $TARGET:/tmp/$BASE &&
    53                         ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE"; then
     53                        ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE && postinst.sh"; then
    5454                        echo "Install on $TARGET OK"
     55                        if [ "$REBOOT" ]; then
     56                        echo "Rebooting box!"
     57                        ssh $OPTS $TARGET "reboot"
     58                        fi
    5559                else
    5660                        echo "######################## INSTALL ON $TARGET FAILED! ######## "
     
    6266done
    6367
    64 #run postinstallers
    65 for TARGET in $TARGETS; do
    66         (
    67                 if ssh $OPTS $TARGET "cd /; postinst.sh"; then
    68                         echo "Install on $TARGET OK"
    69                         if [ "$REBOOT" ]; then
    70                                 echo "Rebooting box!"
    71                                 ssh $OPTS $TARGET "reboot"
    72                         fi
    73                 else
    74                         echo "######################## INSTALL ON $TARGET FAILED! ######## "
    75                 fi
    76         ) | sed -u "s/^/$TARGET: /" &
    77 done
    78 
    79 wait
    80 
    81 
    8268echo "All installs done"
Note: See TracChangeset for help on using the changeset viewer.