Fix startup script to work with existing ssh-agent
Should work with all agents, tested with ssh-agent, and gnome-keyring-daemon
This commit is contained in:
parent
28aa6d2305
commit
0eb5d6343e
|
@ -19,7 +19,11 @@ start() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting SparkleShare... "
|
echo -n "Starting SparkleShare... "
|
||||||
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
|
if [ -n "${SSH_AGENT_PID}" -o -n "${SSH_AUTH_SOCK}" ] ; then
|
||||||
|
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
|
||||||
|
else
|
||||||
|
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
|
||||||
|
fi
|
||||||
( umask 066; echo $! > ${pidfile} )
|
( umask 066; echo $! > ${pidfile} )
|
||||||
echo "Done."
|
echo "Done."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue