on xenial help sign in
Only try to touch DEFAULT_MIR_SOCKET if UNITY_MIR_SOCKET is empty.
0ccd3a3Michał Sawicz
data/unity8.conf+1−1
@@ -32,7 +32,7 @@ pre-start script
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 [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
34 rm "$UNITY_MIR_SOCKET"
34 rm "$UNITY_MIR_SOCKET"
35− elif [ -S "$DEFAULT_MIR_SOCKET" ]; then
35+ elif [ -z "$UNITY_MIR_SOCKET" -a -S "$DEFAULT_MIR_SOCKET" ]; then
36 rm "$DEFAULT_MIR_SOCKET"
36 rm "$DEFAULT_MIR_SOCKET"
37 fi
37 fi
38end script
38end script