Changes in npl/remoteinstall [f49e71c:c5c522c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/remoteinstall
rf49e71c rc5c522c 51 51 echo "Uploading and installing" 52 52 if scp $OPTS $PKG $TARGET:/tmp/$BASE && 53 ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE "; then53 ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE && postinst.sh"; then 54 54 echo "Install on $TARGET OK" 55 if [ "$REBOOT" ]; then 56 echo "Rebooting box!" 57 ssh $OPTS $TARGET "reboot" 58 fi 55 59 else 56 60 echo "######################## INSTALL ON $TARGET FAILED! ######## " … … 62 66 done 63 67 64 #run postinstallers65 for TARGET in $TARGETS; do66 (67 if ssh $OPTS $TARGET "cd /; postinst.sh"; then68 echo "Install on $TARGET OK"69 if [ "$REBOOT" ]; then70 echo "Rebooting box!"71 ssh $OPTS $TARGET "reboot"72 fi73 else74 echo "######################## INSTALL ON $TARGET FAILED! ######## "75 fi76 ) | sed -u "s/^/$TARGET: /" &77 done78 79 wait80 81 82 68 echo "All installs done"
Note: See TracChangeset
for help on using the changeset viewer.