Restore from repos
This commit is contained in:
parent
3f5a1bfdd8
commit
d8c4860f90
|
@ -293,7 +293,7 @@ function restore_local_gogs {
|
|||
if [ -d ${temp_restore_dir}repos/home/${GOGS_USERNAME}/gogs-repositories ]; then
|
||||
cp -r ${temp_restore_dir}repos/home/${GOGS_USERNAME}/gogs-repositories/* /home/${GOGS_USERNAME}/gogs-repositories/
|
||||
else
|
||||
cp -r ${temp_restore_dir}/* /home/${GOGS_USERNAME}/gogs-repositories/
|
||||
cp -r ${temp_restore_dir}repos/* /home/${GOGS_USERNAME}/gogs-repositories/
|
||||
fi
|
||||
if [ ! "$?" = "0" ]; then
|
||||
function_check set_user_permissions
|
||||
|
|
Loading…
Reference in New Issue