diff --git a/l2tp.sh b/l2tp.sh index 69f4f33..ddf58c2 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -331,11 +331,11 @@ compile_install(){ make && make install if [ $? -eq 0 ]; then if is_64bit;then - ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5 - ln -s /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5 + ln -sf /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5 + ln -sf /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5 else - ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5 - ln -s /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5 + ln -sf /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5 + ln -sf /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5 fi else echo "libevent2 install failed..."