启动时拒绝Git权限:conq:存储库访问被拒绝

时间:2013-06-11 16:09:45

标签: git ssh-keys

我有一个脚本(sb_start_main)调用另一个脚本(check_for_updates)来拉取git repo。当我直接运行任一脚本(sb_start_main或check_for更新)时,它是成功的。我添加了一个带有时间戳和当前用户的echo语句(按预期的方式是sookbox)。

bash /home/sookbox/update_testing/check_for_updates
sookbox Current time stamp: Tue Jun 11 11:51:47 EDT 2013
.....checking for updates
.....fetching origin master
.....current version of master  :  v1.6

我将脚本sb_start_main添加到rc.local,以便它在启动时运行。当我这样做时,脚本不再有效,即使它作为正确的用户运行,sookbox:

sookbox Current time stamp: Tue Jun 11 11:49:28 EDT 2013
.....checking for updates
.....fetching origin master
conq: repository access denied.
fatal: The remote end hung up unexpectedly

我很确定问题是这在启动时失败,因为我只是尝试将其安排为运行@reboot的cronjob,但它以完全相同的方式失败。我已经尝试通过rc.local运行脚本并在它之前添加一个睡眠,以防问题是互联网访问还没有启动,但是没有用。

思想?

0 个答案:

没有答案
相关问题