on xenial help sign in
Only try to touch DEFAULT_MIR_SOCKET if UNITY_MIR_SOCKET is empty.
commit0ccd3a31910fa35999af28454adf56a96aa4ff75 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 27 Feb 2014, 22:51 (13 years ago) parentffc6e5a
1 file changed+1−1
data/unity8.conf+1−1
data/unity8.conf+1−1
@@ -32,7 +32,7 @@ pre-start script
3232 # Remove the socket if still there
3333 if [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
3434 rm "$UNITY_MIR_SOCKET"
35− elif [ -S "$DEFAULT_MIR_SOCKET" ]; then
35+ elif [ -z "$UNITY_MIR_SOCKET" -a -S "$DEFAULT_MIR_SOCKET" ]; then
3636 rm "$DEFAULT_MIR_SOCKET"
3737 fi
3838end script