Skip to content

Commit

Permalink
bugfix: migrate websvn config file
Browse files Browse the repository at this point in the history
  • Loading branch information
userid0x0 committed Nov 3, 2024
1 parent 58601c7 commit f20a8d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions root/migrations/01websvn_config_lsio_rebase
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/with-contenv sh

CONFIG_FILE="/config/websvn/config.php"

[ ! -f "${CONFIG_FILE}" ] && exit 0

echo "migrate '${CONFIG_FILE}' - path '/data' -> '/config'"
sed -i '/parentPath/ s#/data/repositories#/config/repositories#' ${CONFIG_FILE}
sed -i '/useAccessFile/ s#/data/subversion#/config/subversion#' ${CONFIG_FILE}

0 comments on commit f20a8d6

Please sign in to comment.