Created
October 29, 2016 12:39
-
-
Save jnikolak/af76734f5480ed431bf06bab9fbd8d05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
mkdir -p /var/www/html/pub/sat-import/ | |
for i in $(ls /source/sat-6-isos--rhel-7-server-x86_64*) | |
do | |
mkdir /mnt/iso | |
mount -o loop $i /mnt/iso | |
cp -ruv /mnt/iso/* /var/www/html/pub/sat-import/ | |
sleep 10 | |
umount /mnt/iso | |
rmdir /mnt/iso | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment