Changeset f49e71c
- Timestamp:
- 11/30/17 01:17:42 (7 years ago)
- Branches:
- gcc484, master, perl-5.22
- Children:
- 67ad486
- Parents:
- 516e1e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/remoteinstall
r516e1e9 rf49e71c 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 && postinst.sh"; then53 ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE"; then 54 54 echo "Install on $TARGET OK" 55 if [ "$REBOOT" ]; then56 echo "Rebooting box!"57 ssh $OPTS $TARGET "reboot"58 fi59 55 else 60 56 echo "######################## INSTALL ON $TARGET FAILED! ######## " … … 66 62 done 67 63 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 68 82 echo "All installs done"
Note: See TracChangeset
for help on using the changeset viewer.