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

Create logs for adding and removing apps

parent df6b9919
No related branches found
No related tags found
No related merge requests found
...@@ -840,7 +840,8 @@ function install_apps_from_webadmin { ...@@ -840,7 +840,8 @@ function install_apps_from_webadmin {
fi fi
fi fi
/usr/local/bin/${PROJECT_NAME}-addremove add "${app_name}" /usr/local/bin/${PROJECT_NAME}-addremove add "${app_name}" > "$webadmin_install_dir/log.txt"
chown www-data:www-data "$webadmin_install_dir/log.txt"
fi fi
# remove the line # remove the line
sed -i "/$linestr/d" "$pending_installs" sed -i "/$linestr/d" "$pending_installs"
...@@ -861,7 +862,8 @@ function remove_apps_from_webadmin { ...@@ -861,7 +862,8 @@ function remove_apps_from_webadmin {
if [[ "$linestr" != *'_running'* ]]; then if [[ "$linestr" != *'_running'* ]]; then
sed -i "s|${app_name}|${app_name}_running|g" "$pending_removes" sed -i "s|${app_name}|${app_name}_running|g" "$pending_removes"
fi fi
/usr/local/bin/${PROJECT_NAME}-addremove remove "${app_name}" /usr/local/bin/${PROJECT_NAME}-addremove remove "${app_name}" > "$webadmin_install_dir/log.txt"
chown www-data:www-data "$webadmin_install_dir/log.txt"
fi fi
# remove the line # remove the line
sed -i "/$linestr/d" "$pending_removes" sed -i "/$linestr/d" "$pending_removes"
......
...@@ -626,6 +626,7 @@ function image_install_web_admin { ...@@ -626,6 +626,7 @@ function image_install_web_admin {
cp -r "$rootdir/usr/share/${PROJECT_NAME}/webadmin"/* "$rootdir$webadmin_install_dir" cp -r "$rootdir/usr/share/${PROJECT_NAME}/webadmin"/* "$rootdir$webadmin_install_dir"
cp "$rootdir/usr/share/${PROJECT_NAME}/webadmin/${language_subdir}"/*.html "$rootdir$webadmin_install_dir" cp "$rootdir/usr/share/${PROJECT_NAME}/webadmin/${language_subdir}"/*.html "$rootdir$webadmin_install_dir"
cp "$rootdir$webadmin_install_dir/${language_subdir}"/index.html "$rootdir$webadmin_install_dir"/index.prev cp "$rootdir$webadmin_install_dir/${language_subdir}"/index.html "$rootdir$webadmin_install_dir"/index.prev
read_config_param ONION_ONLY
if [[ "$ONION_ONLY" != 'no' ]]; then if [[ "$ONION_ONLY" != 'no' ]]; then
web_admin_onion_only web_admin_onion_only
fi fi
......
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