Skip to content

Commit 845e2d5

Browse files
committed
Ensure restore can remove existing content in actions folder
1 parent 0fc9935 commit 845e2d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-restore-actions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ ghe_remote_version_required "$host"
3737
# Transfer all Actions data from the snapshot to the user data directory using rsync.
3838
ghe_verbose "* Transferring actions files to $host ..."
3939

40-
echo "sudo mkdir -p $GHE_REMOTE_DATA_USER_DIR/actions && sudo chown -R actions:actions $GHE_REMOTE_DATA_USER_DIR/actions" |
41-
ghe-ssh -p $port $host /bin/bash
40+
ghe-ssh -p $port $host -- sudo mkdir -p $GHE_REMOTE_DATA_USER_DIR/actions
41+
ghe-ssh -p $port $host -- sudo chown -R actions:actions $GHE_REMOTE_DATA_USER_DIR/actions
4242

4343
ghe-rsync -arvHR --delete \
4444
-e "ghe-ssh -p $port" \

0 commit comments

Comments
 (0)