Skip to content
Snippets Groups Projects
Commit eebbc9d4 authored by Andrew Lee (李健秋)'s avatar Andrew Lee (李健秋)
Browse files

Check before create links.

parent de3f2981
No related branches found
No related tags found
No related merge requests found
...@@ -9,10 +9,10 @@ dbc_go obs-api $@ ...@@ -9,10 +9,10 @@ dbc_go obs-api $@
chown www-data:root /etc/obs/api/config/environment.rb chown www-data:root /etc/obs/api/config/environment.rb
if [ ! -l /var/log/obs ] ; then if [ ! -f /var/log/obs ] ; then
ln -fs /usr/share/obs/api/log /var/log/obs ln -fs /usr/share/obs/api/log /var/log/obs
fi fi
if [ ! -l /var/cache/obs/tmp ] ; then if [ ! -f /var/cache/obs/tmp ] ; then
mkdir -p /var/cache/obs mkdir -p /var/cache/obs
ln -fs /usr/share/obs/api/tmp /var/cache/obs/tmp ln -fs /usr/share/obs/api/tmp /var/cache/obs/tmp
fi fi
...@@ -119,4 +119,3 @@ reload_apache() ...@@ -119,4 +119,3 @@ reload_apache()
reload_apache restart reload_apache restart
#DEBHELPER# #DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment