mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
SyncEngine: Show a warning if post update script can not be exec.
This commit is contained in:
parent
eeb5ca42e0
commit
babe891242
1 changed files with 4 additions and 2 deletions
|
@ -682,14 +682,16 @@ void SyncEngine::slotDiscoveryJobFinished(int discoveryResult)
|
|||
Q_ASSERT(session);
|
||||
|
||||
// post update phase script: allow to tweak stuff by a custom script in debug mode.
|
||||
#ifndef NDEBUG
|
||||
if( !qgetenv("OWNCLOUD_POST_UPDATE_SCRIPT").isEmpty() ) {
|
||||
#ifndef NDEBUG
|
||||
QString script = qgetenv("OWNCLOUD_POST_UPDATE_SCRIPT");
|
||||
|
||||
qDebug() << "OOO => Post Update Script: " << script;
|
||||
QProcess::execute(script.toUtf8());
|
||||
}
|
||||
#else
|
||||
qDebug() << "**** Attention: POST_UPDATE_SCRIPT installed, but not executed because compiled with NDEBUG";
|
||||
#endif
|
||||
}
|
||||
|
||||
// do a database commit
|
||||
_journal->commit("post treewalk");
|
||||
|
|
Loading…
Reference in a new issue