Commit graph

1259 commits

Author SHA1 Message Date
abraunegg 0b89a1fea0
Change order of Microsoft OneDrive restrictions and limitations check and skip_file|skip_dir (#2238)
* Perform check against Microsoft OneDrive restriction and limitations after user configured items to skip has been performed
2022-11-26 05:42:38 +11:00
abraunegg 87003c5923
Update when application exit message is printed (#2239)
* Update #2229 so that the exit message only appears when --synchronize is actually used
2022-11-25 06:57:30 +11:00
abraunegg f853b129cd
Display 'Sync with OneDrive is complete' when using --synchronize (#2229)
* When exiting the application when using --synchronize, display that the sync is complete if we are exiting cleanly and all sync operations are complete
2022-11-19 11:06:00 +11:00
abraunegg 62859609b7
Fix application crash due to access permissions on configured path for sync_dir (#2225)
* Fix application crash due to access permissions on configured path for sync_dir
2022-11-19 08:53:49 +11:00
abraunegg 5a7da61cbb
Fix issue of silent exit when unable to delete local files when using --cleanup-local-files (#2227)
* Add try blocks for performing local deletes to catch in function permission issues preventing file|folder local deletion.
2022-11-19 06:18:56 +11:00
abraunegg 12d54db1e4
Fix build error with LDC 1.28.1 on Alpine (#2220)
* Fix build error with LDC 1.28.1 on Alpine due to MUSL being used as libc, due to the update of cgi.d performed with #2219
2022-11-16 08:59:19 +11:00
abraunegg c35ff20f5b
Fix build error with dmd-2.101.0 (#2219)
* Update cgi.d with latest file from https://github.com/adamdruppe/arsd/commits/master/cgi.d
2022-11-16 05:50:07 +11:00
abraunegg 95982c374e Update USAGE.md
* Change indentation
2022-11-14 14:09:59 +11:00
abraunegg 0ec1c95e4a
Only call isPathExcludedViaSyncList if 'sync_list' is enabled where possible (#2213)
* Only check 'sync_list' if this has been enabled and configured, otherwise do not undertake a check as it is computationally redundant where possible
2022-11-10 16:58:54 +11:00
abraunegg 941e1e215d
Ensure path does not start with '/' before sync_list check (#2215)
* Ensure path does not start with '/' before sync_list check due to changes from 2211 and 2212
2022-11-10 14:28:20 +11:00
abraunegg 361c3cf0a1
Update Fix 2211 and 2212 (#2214)
* Update fixes for 2211 and 2212 due to undesirable path issue and output when application processing is actually correct
2022-11-10 13:43:36 +11:00
abraunegg 812f1a8d31 Update Docker.md
* Correct table references for 'edge'
2022-11-10 12:01:12 +11:00
Luca Boccassi 39a0048445
systemd: disable non-working remaining sandboxing options (#2205)
* systemd: use PrivateUsers= in user unit

ProtectSystem= and other sandboxing options require a user namespace in
order to work as user units (the user manager does not run as root and
thus without a user namespace it is unable to perform mounts).
2022-11-10 07:15:11 +11:00
abraunegg 4a6c78a7a6
Only calculate path with computeItemPath if path is empty (#2212)
* Only calculate path with computeItemPath if path is empty, avoiding a double calculation and DB operations
2022-11-10 07:03:58 +11:00
abraunegg c73c0aa608
Fix application crash when local file is changed to a symbolic link with non-existent target (#2211)
* Add a try & catch block for testing if the file exists locally to catch any filesystem error that may be generated
* Test path to be valid if a symbolic link
2022-11-10 06:50:37 +11:00
abraunegg 591b13f892 Update USAGE.md
* Update document to include instructions on how to count the number of files and folders for 'sync_dir'
2022-11-09 14:48:23 +11:00
abraunegg e3ce0ef6a8 Update USAGE.md
* Put application version note at top of document
2022-11-06 11:13:59 +11:00
abraunegg 8baec3c3fd Update ubuntu-package-install.md
* Due to some sort of 'default' change, ensure that we are not installing any package recommendations or suggestions as these are 100% not required
2022-11-06 11:00:56 +11:00
abraunegg ef8e5bed59
Add instructions for using OBS for Ubuntu 22.10 (#2201)
* Add instructions for using OBS for Ubuntu 22.10
2022-11-02 13:56:39 +11:00
abraunegg 1eda30d29d
Add note regarding what application version should be used (#2200)
* Add note regarding what application version should be used
2022-11-02 06:58:23 +11:00
abraunegg 7daf8797f8
Add performance output for key functions (#2180)
* Add developer option 'display_processing_time' to control if performance timing is outputted or not
* If option is enabled, print performance data around how long key functions are taking to process data to assist with understanding any performance related questions
2022-10-12 13:34:42 +11:00
wrac4242 4f15c35256
Update USAGE.md (#2178)
change line to be root:users, due to chown complaining about `chown: warning: '.' should be ':': ‘root.users’`
not critical issue though
2022-10-10 07:12:57 +11:00
abraunegg da967b06bc
Update podman.md (#2176)
* Update podman.md to include --userns=keep-id details
2022-10-07 19:41:30 +11:00
Jayme Davis eaf097f7b0
owed -> owned (typo) (#2171)
* owed -> owned (typo)
2022-10-07 17:01:32 +11:00
abraunegg fd0a028276
Align application logging events to actual application defaults (#2170)
* Align application logging events to actual application defaults for --monitor operations
2022-10-07 06:52:38 +11:00
abraunegg e08c89ad0b
Remove Fedora ARMv7 builds (#2165)
* Remove Fedora ARMv7 builds
* Switch 'latest' to point at Debian builds
2022-10-04 06:01:59 +11:00
abraunegg 7fe242dfc0
Update docker.yaml to downgrade setup-qemu-action to use qemu-v6.2.0-26 (#2162)
* Update docker.yaml to downgrade setup-qemu-action to use qemu-v6.2.0-26 because when using 'tonistiigi/binfmt:latest' - this uses qemu-v7.0.0-28, which, causes a build failure 'Out of memory allocating XXX bytes' for Fedora ARMv7 builds
2022-10-03 19:33:51 +11:00
abraunegg 1fdee4caaf
Release 2.4.22 Dev Prep (#2161)
* Release 2.4.22 Dev Prep
2022-10-01 09:03:24 +10:00
abraunegg f2b5a5543e
Update docker.yaml
Temp remove linux/arm/v7 from Fedora build
2022-09-27 17:45:07 +10:00
abraunegg 1f4e0e143c
Release files for 2.4.21 (#2157)
* Release files for 2.4.21
2022-09-27 05:30:30 +10:00
abraunegg d1642dab30
Update INSTALL.md
* Fix Fedora > Version 18 / CentOS 8.x / RHEL 8.x / RHEL 9.x instructions
2022-09-26 18:08:01 +10:00
abraunegg 514df625b9
Add option to create a read-write shareable link (#2154)
* Implement Feature Request 2110 to add option to create a read-write shareable link
2022-09-26 17:56:42 +10:00
abraunegg 993770f49a
Fix DMD 2.100.2 depreciation warning (#2156)
DMD 2.100.2 creates a depreciation warning:

Deprecation: `return` statements cannot be in `scope(failure)` bodies.
2022-09-26 14:44:30 +10:00
abraunegg a35c7c72f5
Update database access exclusivity test for --resync (#2155)
* Update database access exclusivity test for --resync
2022-09-26 11:49:48 +10:00
abraunegg e2ed2d2b58
Update notification handling for specific skipped scenarios (#2153)
* Update skip notification handling for the following scenarios:
  * Invalid Name (Microsoft Naming Convention)
  * Invalid Name (Contains an invalid whitespace item)
  * Invalid Name (Contains HTML ASCII Code)
  * Invalid Item (Invalid symbolic link)
2022-09-26 07:40:22 +10:00
abraunegg 7a5cf8dd46
Update national-cloud-deployments.md (#2152)
* Update documentation to reflect correct Azure portal to use to register a new application
2022-09-26 07:06:44 +10:00
Brian McCafferty d035ee13cd
Minor update to rpm build docs to match versions (#2146)
Update to the rpm build docs to ensure the tar.gz file is the same version as in the spec.in file
onedrive.spec.in references version v2.4.20 however the docs reference 2.4.15

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2022-09-24 17:30:52 +10:00
Brian McCafferty a348750ec6
Update onedrive.spec.in to fix error building RPM (#2145)
Updating the line
%{_unitdir}/%{name}.service
to 
%{_userunitdir}/%{name}.service

This fixes the issue when building the RPM on RHEL7/8/9 with the following error:
RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/onedrive-2.4.20-1.el7.x86_64/usr/lib/systemd/system/onedrive.service

This is due to the file actually being created in:
/root/rpmbuild/BUILDROOT/onedrive-2.4.20-1.el7.x86_64/usr/lib/systemd/user/onedrive.service

Changing _unitdir to _userunitdir fixes this error and allows the RPMs to be build correctly.
2022-09-24 17:29:53 +10:00
abraunegg 371b87f62a
Update ubuntu-package-install.md
* Add Linux Mint 21 specific details
2022-09-20 16:19:09 +10:00
abraunegg 19308541eb
Update documentation to document skip_size (#2132)
* Update documentation to document skip_size
2022-09-16 06:21:57 +10:00
abraunegg 738be2d150
Add option to cleanup local files regardless of sync state when using --download-only (#2113)
* Add option to cleanup local files regardless of sync state when using --download-only
2022-08-31 06:41:52 +10:00
abraunegg 5288f94ac4
Resolve segfault when running 'onedrive --display-sync-status' when run as 2nd process (#2105)
* Rather than force exit if unable to lock the database, add a function and boolean to control if the database access has been init was successful. If not, use the exit scopes to exit the application
2022-08-30 19:09:35 +10:00
abraunegg 3b7a06cdcd
Fix where --resync is enforced for non-sync operations (#2111)
* Fix that the --resync option is wrongly enforced when the OneDrive client is started with --list-shared-folders option or other non-sync options. This only happens when configuration changes are detected.
2022-08-26 09:11:10 +10:00
abraunegg 33423ee441
Fix to allow non-sync tasks while sync is running (#2112)
* Fix to allow --get-file-link and --list-shared-folders when already running
2022-08-25 20:18:53 +10:00
abraunegg abc8b58ee7
Update Docker and Podman documentation (#2109)
* Update Docker and Podman documentation
2022-08-23 05:39:53 +10:00
abraunegg d169dfc642
Improve application logging output for error messages (#2100)
* When enabling system logging to a log file, the actual ERROR line is forced to a new line in the application log. The reason for this is the \n prefix in the error message, which was in place so that when performing CLI logging or systemd logging, the error message would be displayed clearly. This change removes the \n from the actual error message, but inserts a newline before the error message is displayed (and also in some cases post error message) - thus keeping the application runtime look and feel, but improving the application log output.
2022-08-18 09:14:13 +10:00
Felix Yan b16fe173e0
Correct a typo in docs/INSTALL.md (#2097)
* Correct a typo in docs/INSTALL.md
2022-08-18 05:11:46 +10:00
abraunegg de701629a8
Update INSTALL.md (#2095)
* Add clarification when using the uninstallation process, this will remove all client files including all systemd files, custom or otherwise.
2022-08-17 14:50:08 +10:00
abraunegg eba676c600
Change the exit code of the application when a --resync is required (#2096)
* Change the exit code of the application when a --resync is required from a generic exit code of 1 to exit code 126, as 126 is supposed to be used when a command invoked cannot be executed - which, in this case, when a --resync is needed - the original command cannot be executed.

* This allows|enables watching for a 126 error code in automated environments, so that when 126 as the exit code is seen, the command can be re-tried potentially automatically with the appropriate resync arguments added.
2022-08-17 13:19:51 +10:00
abraunegg 9b8a25f34c
Fix that logging output for skipped uploaded files is missing (#2094)
* Add missing logfile output when enabling logging so that when uploaded new & modified files are skipped, this is correctly reflected in logfile output
2022-08-17 05:48:11 +10:00