Skip to content

Commit

Permalink
Updated monthly run script on our nightlies server
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 14, 2022
1 parent e4435e6 commit c1605e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions installer/other/move_nightlies_into_dirs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ YEARMONTH=`date -d "last month 13:00" '+%Y-%m'`
YEARMONTHOSX=`date -d "last month 13:00" '+%Y%m'`

# Create appropriate new subfolders
mkdir /nightlies/osx/${YEARMONTH}
mkdir /nightlies/macos-intel/${YEARMONTH}
mkdir /nightlies/macos-arm64/${YEARMONTH}
mkdir /nightlies/win32/${YEARMONTH}
mkdir /nightlies/win64/${YEARMONTH}

# Move builds
mv /nightlies/osx/DB*${YEARMONTHOSX}* /nightlies/osx/night*${YEARMONTHOSX}* /nightlies/osx/${YEARMONTH}/
mv /nightlies/macos-intel/DB*${YEARMONTHOSX}* /nightlies/macos-intel/night*${YEARMONTHOSX}* /nightlies/macos-intel/${YEARMONTH}/
mv /nightlies/macos-arm64/DB*${YEARMONTHOSX}* /nightlies/macos-arm64/night*${YEARMONTHOSX}* /nightlies/macos-arm64/${YEARMONTH}/
mv /nightlies/win32/DB*${YEARMONTH}* /nightlies/win32/${YEARMONTH}/
mv /nightlies/win64/DB*${YEARMONTH}* /nightlies/win64/${YEARMONTH}/

# Fix ownership and context
chown -Rh nightlies: /nightlies/osx/${YEARMONTH} /nightlies/win32/${YEARMONTH} /nightlies/win64/${YEARMONTH}
restorecon -RFv /nightlies/osx/${YEARMONTH} /nightlies/win32/${YEARMONTH} /nightlies/win64/${YEARMONTH}
# Fix ownership and SELinux context's
chown -Rh nightlies: /nightlies/macos-intel/${YEARMONTH} /nightlies/macos-arm64/${YEARMONTH} /nightlies/win32/${YEARMONTH} /nightlies/win64/${YEARMONTH}
restorecon -RFv /nightlies/macos-intel/${YEARMONTH} /nightlies/macos-arm64/${YEARMONTH} /nightlies/win32/${YEARMONTH} /nightlies/win64/${YEARMONTH}

echo Nightlies moved for $YEARMONTH

0 comments on commit c1605e2

Please sign in to comment.