Commit Graph

10 Commits

Author SHA1 Message Date
a2fcbb0512 Updated common
Changed comments and preamble of script.

'backup_file' variable in 'restore_function' is now global to allow for
removal of backup archive if the restoration was successful.
2021-06-22 17:16:09 +01:00
d2e13eb940 Updated common and fixed bugs
Refactored 'archive_system' function
    - function now explicitly identifies which require compressing.
    - symbolic links are removed from the list(s) due to causing issues
      during the decompression stage when restoring the system. Symlinks
      are then stored in a record with the symlink name followed by the
      target. Both prefixed with paths to location and ':' delimited,
      respectfully.
    - system is then compressed using tar gzip compression, overwriting
      any previously generated archive generated.

Refactored 'restore_system' function
    - changed 'backup_file' to no longer require the final sed command
      similar what's found in 'archive_function' - unnecessary
      processing.
    - fixed tar statement to correctly output the contents of the
      decompression to the root of the system ("/").
    - added function to recreate the symlink files. It's unlikely that
      symlink files need replacing due to their behaviour; however, for
      clarity, the identified symlink files during archiving are recreated
      to their original location and linked to their target location.

Removed trailing whitespaces.
2021-06-21 15:06:18 +01:00
9ec3bacc9d Fixed bug
Logic error identifying if a backup file exists.
2021-06-15 23:51:25 +01:00
0fb16f178d Fixed bug
Fixed issue with subshell command not being completed.
2021-06-15 23:33:19 +01:00
00275314d7 Fixed bug
Syntax bug in common file.
Updated .gitignore to exclude Dockerfile during testing.
2021-06-15 16:47:18 +01:00
11a90f8f92 Fixed bugs
Changed the behaviour of tar to not be verbose and any output it placed
in a tmp file, STDERR is redirected to logs.

Bug with the format of exit code capture in updater that was fixed in
common; however, those changes hadn't been made until now in updater.
2021-06-13 21:41:33 +01:00
a7bb0d2d80 Updated to v0.1.4
Fixed bugs and issues
    - Fixed issue in common script with incorrect exit code capture of
      subshells.
    - Changed tar command for decompressing data.tar.gz file to only log
      STDERR and void STDOUT.
    - Log function was called without correct arguments @ln:239. Message
      related to there being a new version available but wasn't logged.
2021-06-05 16:51:12 +01:00
eb1ed051d2 Updated common to v0.1.3
Common now contains a notify function which uses notify-send to provide
a user with a notification when the function is called.
    - Function takes 2 inputs, {summary} and {body} which are respectful
      to the basic arguments for notify-send.
    - Function returns an issue with required amount of arguments aren't
      met.
    - Default arguments are used with notify-send, no other interaction
      is made possible.

Updated backup functions to only log STDERR to file, which files are
(de)compressed aren't fundamental to logging information and exact files
can be checked appropriately via other means.

Fixed bug with relative path being incorrect for operation of updater
when sourcing in common.
2021-05-28 18:26:55 +01:00
9493db2435 Added license agreement preamble
Added the GNU GPLv3 preamble for licencing software program files.
Adjusted existing preamble to accommodate this license.
2021-05-23 23:08:42 +01:00
793a57a70c Added program files to repo
All the files associated with Microsoft Edge Updater have been added to
this repository to allow for version control as of this point and for
other users to start using/testing the program.

There are no previous commits in the history for these files; however,
further development will be continued and committed to this repo.
Currently the program is at version 0.1.2 in beta phase of development
and currently stable as of minimal testing.
2021-05-23 21:20:07 +01:00