Skip to content
Snippets Groups Projects
Commit 114cac57 authored by Bob Mottram's avatar Bob Mottram
Browse files

Set file permissions

parent 153b5466
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,9 @@ fi
sed -i "/install_$arg2/d" "$pending_installs"
#web_admin_create_add_apps
cp "$webadmin_install_dir/app_installing_failed.html" "$webadmin_install_dir/index.html"
chown www-data:www-data "$webadmin_install_dir/index.html"
cp "$webadmin_install_dir/app_installing_failed.html" "$webadmin_install_dir/installing_progress.html"
chown www-data:www-data "$webadmin_install_dir/installing_progress.html"
exit 1
else
......
......@@ -248,6 +248,7 @@ function install_completed_remove_progress_screen {
# replace the installing screen with the original index page
if [ -f "$webadmin_install_dir/index_app_installing.html" ]; then
cp "$webadmin_install_dir/index_app_installing.html" "$webadmin_install_dir/index.html"
chown www-data:www-data "$webadmin_install_dir/index.html"
rm "$webadmin_install_dir/index_app_installing.html"
if [ -f "$webadmin_install_dir/installing_progress.html" ]; then
rm "$webadmin_install_dir/installing_progress.html"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment