From 525504f91a8cc2d782291968f17f6b5534435994 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Wed, 20 Jan 2021 09:26:38 +1100 Subject: [PATCH] Rename Office365.md to SharePoint-Shared-Libraries.md (#1232) * Rename Office365.md --> SharePoint-Shared-Libraries.md which better describes this document --- Makefile.in | 2 +- README.md | 2 +- ...e365.md => SharePoint-Shared-Libraries.md} | 23 +++++++++++++++---- docs/USAGE.md | 2 +- docs/build-rpm-howto.md | 6 ++--- onedrive.1.in | 2 +- 6 files changed, 25 insertions(+), 12 deletions(-) rename docs/{Office365.md => SharePoint-Shared-Libraries.md} (75%) diff --git a/Makefile.in b/Makefile.in index 38908544..5f6008fb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -55,7 +55,7 @@ endif system_unit_files = contrib/systemd/onedrive@.service user_unit_files = contrib/systemd/onedrive.service -DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md docs/BusinessSharedFolders.md docs/advanced-usage.md +DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md docs/BusinessSharedFolders.md docs/advanced-usage.md ifneq ("$(wildcard /etc/redhat-release)","") RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux Server|CentOS)" | wc -l) diff --git a/README.md b/README.md index e1139b25..b11b433e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ See [docs/USAGE.md](https://github.com/abraunegg/onedrive/blob/master/docs/USAGE See [docs/BusinessSharedFolders.md](https://github.com/abraunegg/onedrive/blob/master/docs/BusinessSharedFolders.md) ### Configure SharePoint / Office 365 Shared Libraries (Business or Education) -See [docs/Office365.md](https://github.com/abraunegg/onedrive/blob/master/docs/Office365.md) +See [docs/SharePoint-Shared-Libraries.md](https://github.com/abraunegg/onedrive/blob/master/docs/SharePoint-Shared-Libraries.md) ### Configure National Cloud support See [docs/national-cloud-deployments.md](https://github.com/abraunegg/onedrive/blob/master/docs/national-cloud-deployments.md) diff --git a/docs/Office365.md b/docs/SharePoint-Shared-Libraries.md similarity index 75% rename from docs/Office365.md rename to docs/SharePoint-Shared-Libraries.md index 7b46e1fd..811e662b 100644 --- a/docs/Office365.md +++ b/docs/SharePoint-Shared-Libraries.md @@ -2,9 +2,10 @@ Syncing a OneDrive SharePoint library requires additional configuration for your 'onedrive' client: 1. Login to OneDrive and under 'Shared Libraries' obtain the shared library name 2. Query that shared library name using the client to obtain the required configuration details -3. Configure the client's config file with the required 'drive_id' -4. Test the configuration using '--dry-run' -5. Sync the SharePoint Library as required +3. Create a unique local folder which will be the SharePoint Library 'root' +4. Configure the client's config file with the required 'drive_id' +5. Test the configuration using '--dry-run' +6. Sync the SharePoint Library as required ## Listing available OneDrive SharePoint Libraries 1. Login to the OneDrive web interface and determine which shared library you wish to configure the client for: @@ -15,7 +16,7 @@ Syncing a OneDrive SharePoint library requires additional configuration for your ```text onedrive --get-O365-drive-id '' ``` -3. This will return the following: +This will return something similar to the following: ```text Configuration file successfully loaded Configuring Global Azure AD Endpoints @@ -26,7 +27,19 @@ drive_id: b!6H_y8B...xU5 URL: ``` -## Configure the client's config file with the required 'drive_id' +## Configure the client's config file with the required 'drive_id' & 'sync_dir' options +3. Create a new local folder to store the SharePoint Library data in +```text +mkdir ~/SharePoint_My_Library_Name +``` + +**Note:** Do not use spaces in the directory name, use '_' as a replacement + +Update your 'onedrive' configuration file (`~/.config/onedrive/config`) with the following: +```text +sync_dir = "~/SharePoint_My_Library_Name" +``` + 4. Once you have obtained the 'drive_id' above, add to your 'onedrive' configuration file (`~/.config/onedrive/config`) the following: ```text drive_id = "insert the drive_id value from above here" diff --git a/docs/USAGE.md b/docs/USAGE.md index ea4d0da9..17e78ab4 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -570,7 +570,7 @@ Folders shared with you can be synced by adding them to your OneDrive. To do tha Refer to [./BusinessSharedFolders.md](BusinessSharedFolders.md) for configuration assistance. ### SharePoint / Office 365 Shared Libraries -Refer to [./Office365.md](Office365.md) for configuration assistance. +Refer to [./SharePoint-Shared-Libraries.md](SharePoint-Shared-Libraries.md) for configuration assistance. ## Running 'onedrive' in 'monitor' mode Monitor mode (`--monitor`) allows the onedrive process to continually monitor your local file system for changes to files. diff --git a/docs/build-rpm-howto.md b/docs/build-rpm-howto.md index 77a766c9..b2ffe30f 100644 --- a/docs/build-rpm-howto.md +++ b/docs/build-rpm-howto.md @@ -115,7 +115,7 @@ Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VP7LUb /usr/bin/install -c -D onedrive.1 /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/usr/share/man/man1/onedrive.1 /usr/bin/install -c -D -m 644 contrib/logrotate/onedrive.logrotate /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/etc/logrotate.d/onedrive mkdir -p /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/usr/share/doc/onedrive -/usr/bin/install -c -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/usr/share/doc/onedrive +/usr/bin/install -c -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/usr/share/doc/onedrive install -D contrib/init.d/onedrive.init /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/etc/init.d/onedrive install -D contrib/init.d/onedrive_service.sh /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el6.x86_64/usr/bin/onedrive_service.sh + /usr/lib/rpm/check-buildroot @@ -287,7 +287,7 @@ Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Ffintx /usr/bin/install -c -D onedrive.1 /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/share/man/man1/onedrive.1 /usr/bin/install -c -D -m 644 contrib/logrotate/onedrive.logrotate /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/etc/logrotate.d/onedrive mkdir -p /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/share/doc/onedrive -/usr/bin/install -c -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/share/doc/onedrive +/usr/bin/install -c -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/share/doc/onedrive /usr/bin/install -c -d -m 0755 /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/lib/systemd/user /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/lib/systemd/system /usr/bin/install -c -m 0644 contrib/systemd/onedrive@.service /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/lib/systemd/system /usr/bin/install -c -m 0644 contrib/systemd/onedrive.service /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el7.x86_64/usr/lib/systemd/system @@ -457,7 +457,7 @@ Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.u9F8Hd /usr/bin/install -p -D onedrive.1 /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/share/man/man1/onedrive.1 /usr/bin/install -p -D -m 644 contrib/logrotate/onedrive.logrotate /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/etc/logrotate.d/onedrive mkdir -p /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/share/doc/onedrive -/usr/bin/install -p -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/share/doc/onedrive +/usr/bin/install -p -D -m 644 README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/share/doc/onedrive /usr/bin/install -p -d -m 0755 /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/lib/systemd/user /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/lib/systemd/system /usr/bin/install -p -m 0644 contrib/systemd/onedrive@.service /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/lib/systemd/system /usr/bin/install -p -m 0644 contrib/systemd/onedrive.service /home/alex/rpmbuild/BUILDROOT/onedrive-2.4.0-1.el8.x86_64/usr/lib/systemd/system diff --git a/onedrive.1.in b/onedrive.1.in index 81c04c2d..a97a3847 100644 --- a/onedrive.1.in +++ b/onedrive.1.in @@ -352,5 +352,5 @@ Further examples and documentation is available in \f[C]docs/USAGE.md\f[] \f[C]docs/advanced-usage.md\f[] \f[C]docs/BusinessSharedFolders.md\f[] -\f[C]docs/Office365.md\f[] +\f[C]docs/SharePoint-Shared-Libraries.md\f[] \f[C]docs/national-cloud-deployments.md\f[]