on xenial help sign in
Simplify and fix socket removal.
83245ebMichał Sawicz
data/unity8.conf+2−4
@@ -30,10 +30,8 @@ pre-start script
30 fi
30 fi
31
31
32 # Remove the socket if still there
32 # Remove the socket if still there
33− if [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
33+ if [ -S "$MIR_SERVER_FILE" ]; then
34− rm "$UNITY_MIR_SOCKET"
34+ rm "$MIR_SERVER_FILE"
35− elif [ -z "$UNITY_MIR_SOCKET" -a -S "$DEFAULT_MIR_SOCKET" ]; then
36− rm "$DEFAULT_MIR_SOCKET"
37 fi
35 fi
38end script
36end script
39
37