From af34a774b6d4f020fccd664b166b02ad5bfb1630 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 24 Mar 2017 10:36:11 -0700 Subject: [PATCH 1/2] Condense multiple `cp` commands into one --- en-US/upgrade/upgrade_from_binary.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/en-US/upgrade/upgrade_from_binary.md b/en-US/upgrade/upgrade_from_binary.md index 67f4692f..a44bdf47 100644 --- a/en-US/upgrade/upgrade_from_binary.md +++ b/en-US/upgrade/upgrade_from_binary.md @@ -39,9 +39,7 @@ gogs gogs_old gogs-repositories $OS_$ARCH.tar.gz Copy `custom`, `data` and `log` directories to unzipped directory: ```bash -$ cp -R gogs_old/custom gogs -$ cp -R gogs_old/data gogs -$ cp -R gogs_old/log gogs +$ cp -R gogs_old/{custom,data,log} gogs ``` Then, run and test in your browser: From 5950c6b4eee7a1bc7102b9854827422f7201e632 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 24 Mar 2017 10:38:10 -0700 Subject: [PATCH 2/2] Add a final note about the execute bit on files in `scripts` The scripts/init/debian/gogs file wasn't executable, which caused some confusion when my init.d script stopped working (it symlinks to this bundled script). Might as well make sure all the shebang files are, in fact, executable. --- en-US/upgrade/upgrade_from_binary.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/en-US/upgrade/upgrade_from_binary.md b/en-US/upgrade/upgrade_from_binary.md index a44bdf47..7051463f 100644 --- a/en-US/upgrade/upgrade_from_binary.md +++ b/en-US/upgrade/upgrade_from_binary.md @@ -50,3 +50,10 @@ $ ./gogs web ``` Well done! + +**Note** If you use the bundled `scripts`, make sure they are executable: + +```bash +grep -rl '^#!' scripts | xargs chmod +x +``` +