Commit a04acbeb authored by Andrew Lee's avatar Andrew Lee

d/rake-tasks.sh: touch the file if it's not exist yet for chown command.

Signed-off-by: Andrew Lee's avatarAndrew Lee (李健秋) <ajqlee@debian.org>
parent f59a4acb
......@@ -26,6 +26,10 @@ case "$1" in
chmod 775 /var/cache/obs/tmp/
chown -R www-data:www-data /usr/share/obs/api/db
chown -R www-data:www-data /usr/share/obs/api/public
if [ ! -x /etc/obs/api/config/production.sphinx.conf ]; then
touch /etc/obs/api/config/production.sphinx.conf
fi
chown www-data:www-data /etc/obs/api/config/production.sphinx.conf
chmod 664 /var/log/obs/*.log
chown obsapi:www-data /etc/obs/api/config/database.yml
chmod 440 /etc/obs/api/config/database.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment