diff --git a/web/components/HeaderOsVersion.ce.vue b/web/components/HeaderOsVersion.ce.vue index 1bb6b6c19..8562bef2a 100644 --- a/web/components/HeaderOsVersion.ce.vue +++ b/web/components/HeaderOsVersion.ce.vue @@ -21,7 +21,7 @@ const updateOsStore = useUpdateOsStore(); const updateOsActionsStore = useUpdateOsActionsStore(); const { osVersion } = storeToRefs(serverStore); -const { available, parsedReleaseTimestamp } = storeToRefs(updateOsStore); +const { available } = storeToRefs(updateOsStore); const { rebootType } = storeToRefs(updateOsActionsStore); @@ -45,7 +45,7 @@ const { rebootType } = storeToRefs(updateOsActionsStore); /** - * @todo require keyfile to be set before allowing user to check for updates - * @todo require keyfile to update - * @todo require valid guid / server state to update + * @todo how are we going to update test, beta, and stable releases for internal testing? + * @todo after install / downgrade detect if third-party drivers are installed and tell users to wait for a user to wait for a new notification + * + * run exec("ps aux | grep -E "inotifywait -q /boot/changes.txt -e move_self,delete_self" | grep -v "grep -E inotifywait" | awk '{print $2}'"); + * if this returns are value assume we have third-party drivers installed and tell the user to wait for a new notification + * + * view https://s3.amazonaws.com/dnld.lime-technology.com/stable/unRAIDServer.plg to see how the update is handled +# ensure writes to USB flash boot device have completed +sync -f /boot +if [ -z "${plg_update_helper}" ]; then + echo "Update successful - PLEASE REBOOT YOUR SERVER" +else + echo "Third party plugins found - PLEASE CHECK YOUR UNRAID NOTIFICATIONS AND WAIT FOR THE MESSAGE THAT IT IS SAFE TO REBOOT!" +fi */ +import { storeToRefs } from 'pinia'; import { useI18n } from 'vue-i18n'; import { useUpdateOsActionsStore } from '~/store/updateOsActions'; @@ -14,29 +26,27 @@ import '~/assets/main.css'; const { t } = useI18n(); export interface Props { - rebootType?: 'downgrade' | 'upgrade' | 'none'; + restoreReleaseDate?: string; restoreVersion?: string; } -const props = withDefaults(defineProps(), { - rebootType: 'none', +withDefaults(defineProps(), { + restoreReleaseDate: '', restoreVersion: '', }); const updateOsActionsStore = useUpdateOsActionsStore(); - -onBeforeMount(() => { - updateOsActionsStore.setRebootType(props.rebootType); -}); +const { rebootType } = storeToRefs(updateOsActionsStore);