Skip to content

Instantly share code, notes, and snippets.

@jnikolak
Created October 29, 2016 12:39
Show Gist options
  • Save jnikolak/af76734f5480ed431bf06bab9fbd8d05 to your computer and use it in GitHub Desktop.
Save jnikolak/af76734f5480ed431bf06bab9fbd8d05 to your computer and use it in GitHub Desktop.
#!/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