on xenial help sign in
Simplify and fix socket removal.
commit83245eb38e2054a142d40d3c460086bb9f669da9 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 27 Feb 2014, 22:56 (13 years ago) parent0ccd3a3
1 file changed+2−4
data/unity8.conf+2−4
data/unity8.conf+2−4
@@ -30,10 +30,8 @@ pre-start script
3030 fi
3131
3232 # Remove the socket if still there
33− if [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
34− rm "$UNITY_MIR_SOCKET"
35− elif [ -z "$UNITY_MIR_SOCKET" -a -S "$DEFAULT_MIR_SOCKET" ]; then
36− rm "$DEFAULT_MIR_SOCKET"
33+ if [ -S "$MIR_SERVER_FILE" ]; then
34+ rm "$MIR_SERVER_FILE"
3735 fi
3836end script
3937