]> source.dussan.org Git - gitea.git/commit
Fix dump of log and custom directory in dump cmd
authorkakwa <carpentier.pf@gmail.com>
Sat, 28 Nov 2015 14:08:50 +0000 (15:08 +0100)
committerkakwa <carpentier.pf@gmail.com>
Sat, 28 Nov 2015 14:08:50 +0000 (15:08 +0100)
commita59b1fcc21f35bafa16b65ac8c722e14d2dc925e
treebab394c3ad84f2cf4a0965e837c20afadd073312
parentc5a9be91152de507ade9a98674d9eadfc6d1198b
Fix dump of log and custom directory in dump cmd

Now, the dump cmd uses setting.CustomPath and setting.LogRootPath
instead of setting.WorkDir which was kind of broken if the gogs
binary was in a different directory than gogs data.
Additionally, the backup of setting.CustomPath directory is only done
if it exists.
cmd/dump.go